Skip to content

CXMLDocument initWithXMLString crashes with empty XML string #21

Closed
JesseChisholm opened this Issue Mar 23, 2012 · 0 comments

2 participants

@JesseChisholm

If CXmlDocument initWithXMLString given a nil string will crash on line 76.

  • xmlParseDoc returns NULL
  • xmlGetLastError returns nil
  • line 76 does not test for this case, causing a nil dereference crash ** similar line 140 does test for this case, avoiding the crash
@5minpause 5minpause added a commit to 5minpause/TouchXML that referenced this issue Apr 4, 2012
@5minpause 5minpause Possbile fix for Issue #21 (calling initWithXMLString: options: error:
with nil)
9968b3c
@5minpause 5minpause added a commit to 5minpause/TouchXML that referenced this issue Apr 4, 2012
@5minpause 5minpause Possibile fix for Issue #21 (calling initWithXMLString: options: erro…
…r: with nil)
34d1354
@schwa schwa closed this Apr 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.