
abortParsing may crash program
Reported by Alfons Hoogervorst | May 16th, 2009 @ 03:04 AM
When abortParsing is called, _pushXMLData may still try to push
data to an already deallocated lib xml parser object, resulting in
a crash.
I solved it by just putting a check
// don't push data when delegate aborted...
if (_internal->delegateAborted == YES)
return;
at the beginning of the function, but the check should probably put somewhere around xmlParseChunk().
Comments and changes to this ticket
-
-
Jim Dovey May 17th, 2009 @ 06:48 PM
- Assigned user set to Jim Dovey
- State changed from new to resolved
Thanks for the information. I did a slightly different fix, and corrected an issue where the
-abortParsing
method wouldn't send a completion callback properly.I've attached the diff for the changes here.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A random dump of code I've written and found useful.
Source code can be found here:
http://github.com/AlanQuatermain/aqtoolkit/tree/master