[Pidgin] #10992: double-free during reinit: cache_dir not zeroed (was: segfault after reinit: cache_dir not zeroed)
Pidgin
trac at pidgin.im
Wed Dec 16 07:16:03 EST 2009
#10992: double-free during reinit: cache_dir not zeroed
---------------------+------------------------------------------------------
Reporter: cavedon | Owner:
Type: defect | Status: new
Milestone: | Component: libpurple
Version: 2.6.4 | Resolution:
Keywords: |
---------------------+------------------------------------------------------
Description changed by cavedon:
Old description:
> 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!
New description:
If you uninitialize the library and than initialized it again, you get a
crash 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#comment:1>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list