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 698253 - Docs for xmlStrcat() don't say first argument is destroyed
Docs for xmlStrcat() don't say first argument is destroyed
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: docs
git master
Other All
: Normal major
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2013-04-18 00:05 UTC by Travis Cobbs
Modified: 2017-06-20 13:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Travis Cobbs 2013-04-18 00:05:13 UTC
Calling xmlStrcat() causes the first argument to be either destroyed or reallocated. In either case, it's not acceptable to free that variable after the call, but this is not mentioned in the documentation. The documentation for xmlStrncat() gives the proper information. As far as I can tell, xmlStrcat() often calls xmlStrncat().
Comment 1 Nick Wellnhofer 2017-06-20 13:56:54 UTC
Fixed with the following commit:

https://git.gnome.org/browse/libxml2/commit/?id=5a0ae66d7202619d493985537818e052d9d1239f