[Pidgin] #10992: segfault after reinit: cache_dir not zeroed

Pidgin trac at pidgin.im
Wed Dec 16 07:14:41 EST 2009


#10992: segfault after reinit: cache_dir not zeroed
--------------------+-------------------------------------------------------
Reporter:  cavedon  |        Type:  defect   
  Status:  new      |   Component:  libpurple
 Version:  2.6.4    |    Keywords:           
--------------------+-------------------------------------------------------
 If you uninitialize the library and than initialized it again, you get a
 segmentation fault because the pointer cache_dir in buddyicon.c is freed
 but not set to NULL, so the libraries tries to free it again upon re-
 initialization.

 I attaching a fix for that.

 Please considering zeroing freed pointers library-wise, in order to reduce
 or help detecting such issues!

-- 
Ticket URL: <http://developer.pidgin.im/ticket/10992>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list