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 780918 - memory leak with TextReader on malformed XML
memory leak with TextReader on malformed XML
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2017-04-05 08:27 UTC by David Tardon
Modified: 2017-04-07 16:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
reproducer code (510 bytes, text/x-csrc)
2017-04-05 08:27 UTC, David Tardon
  Details
full reproducer (2.80 KB, text/xml)
2017-04-05 08:28 UTC, David Tardon
  Details
minimal reproducer (410 bytes, text/xml)
2017-04-05 08:28 UTC, David Tardon
  Details
fix (681 bytes, patch)
2017-04-05 08:29 UTC, David Tardon
none Details | Review

Description David Tardon 2017-04-05 08:27:32 UTC
Created attachment 349274 [details]
reproducer code

Compile and run the attached reproducer.
Comment 1 David Tardon 2017-04-05 08:28:02 UTC
Created attachment 349275 [details]
full reproducer
Comment 2 David Tardon 2017-04-05 08:28:30 UTC
Created attachment 349276 [details]
minimal reproducer
Comment 3 David Tardon 2017-04-05 08:29:10 UTC
Created attachment 349277 [details] [review]
fix
Comment 4 Daniel Veillard 2017-04-07 16:26:57 UTC
Ahh, good point, applied and pushed:

https://git.gnome.org/browse/libxml2/commit/?id=074180119fc90d5fd04ef9e8a5ee1910d6f9ad8e

  thanks !

Daniel