Skip to content

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Jan 14, 2023

xmlTextWriterEndElement returns -1 if the call fails. There was already a check for retval, but the return value wasn't assigned to retval. The other caller of xmlTextWriterEndElement is in xmlwriter_write_element_ns, which does the check correctly.

Full disclosure:
This bug was found using my own-developed (experimental) static analysis tool, which reported the missing check. I manually verified this bug report by doing code review as well. After applying this patch, my analyser no
longer reports this bug.

xmlTextWriterEndElement returns -1 if the call fails. There was already
a check for retval, but the return value wasn't assigned to retval. The
other caller of xmlTextWriterEndElement is in
xmlwriter_write_element_ns, which does the check correctly.
@Girgias Girgias self-assigned this Jan 15, 2023
@Girgias Girgias closed this in 11a1feb Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants