GNOME Bugzilla – Bug 52067
GMarkup SEGV fix and speed improvements
Last modified: 2011-02-18 15:47:43 UTC
The GMarkup test dies with a segfault with fail-8.gmarkup (in case of errors it tries to report the element it failed in, but that is already freed). The patch also implements attributes and values as arrays instead of a list as was discussed a while ago on gtk-devel-list and requires fewer allocations (it caches the partial_chunck GString): this results in about 15 % speedup (it's still quite slow, though). A new test case is added. Oh, and it removes about 80 lines of code. Comments welcome. lupus
Created attachment 400 [details] [review] Patch with the fixes.
The patch looks good to me, thanks!
Thu May 24 21:24:16 CEST 2001 Paolo Molaro <lupus@ximian.com> * gmarkup.c: back out change by mitch@convergence.de and apply patch in bug id #52067 that fixes the same problem in a more complete manner. This fixes also a segfault for a malformed XML file and adds a new test case.