[Pidgin] #2224: Valgrind errors from gtk_source_undo_manager

Pidgin trac at pidgin.im
Thu Aug 30 03:05:14 EDT 2007


#2224: Valgrind errors from gtk_source_undo_manager
---------------------------+------------------------------------------------
  Reporter:  MarkDoliner   |       Owner:  seanegan
      Type:  defect        |      Status:  closed  
  Priority:  minor         |   Milestone:  2.2.0   
 Component:  pidgin (gtk)  |     Version:  2.0.2   
Resolution:  fixed         |    Keywords:          
   Pending:  1             |  
---------------------------+------------------------------------------------
Changes (by MarkDoliner):

  * status:  new => closed
  * resolution:  => fixed
  * pending:  1 => 0

Comment:

 I dug into this and it looks like text isn't null terminated.  I changed
 the code to assume that length is correct, and to use g_strndup() with the
 given length parameter instead of using g_strdup().

 (FYI I've never seen a false positive from valgrind.  It's awesome!)

-- 
Ticket URL: <http://developer.pidgin.im/ticket/2224#comment:3>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list