After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 344458 - access data after a call to xmlFree()
access data after a call to xmlFree()
Status: RESOLVED FIXED
Product: libsoup
Classification: Core
Component: API
2.2.x
Other Linux
: Normal major
: ---
Assigned To: Dan Winship
Dan Winship
Depends on:
Blocks: 133765
 
 
Reported: 2006-06-10 03:22 UTC by Brent Smith (smitten)
Modified: 2006-06-12 15:19 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
the patch (3.92 KB, patch)
2006-06-10 03:23 UTC, Brent Smith (smitten)
none Details | Review
second patch without the gtk-doc.make crap (1.36 KB, patch)
2006-06-10 03:29 UTC, Brent Smith (smitten)
none Details | Review

Description Brent Smith (smitten) 2006-06-10 03:22:24 UTC
the returned parameter "tail" from strtol in the soup_xmlrpc_value_get_* functions will point to the first occurrence of a bad character in "content".  However, these functions xmlFree(content) before the tail pointer is dereferenced.  This results in a particulary nasty bug where you sometimes get FALSE returned when the string is actually a valid integer.

patch follows.

This is needed for the latest XML-RPC enabled version of bug-buddy
Comment 1 Brent Smith (smitten) 2006-06-10 03:23:09 UTC
Created attachment 67078 [details] [review]
the patch

fairly straight forward
Comment 2 Brent Smith (smitten) 2006-06-10 03:29:54 UTC
Created attachment 67079 [details] [review]
second patch without the gtk-doc.make crap
Comment 3 Dan Winship 2006-06-12 15:19:45 UTC
sigh. fixed in CVS.