Fix leak that may occur when xmlnode_from_str fails

Review Request #911 — Created Sept. 9, 2021 and submitted

Information

pidgin/pidgin
release-2.x.y

Reviewers

The failure may occur any time in the middle of parsing, and xpd->current may
not actually be pointing to the root of the parsed tree. Thus we need to walk
back up before freeing the xmlnode.

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=34988

Ran the reproducer testcase on fuzz_xml

Summary ID
Fix leak that may occur when xmlnode_from_str fails.
The failure may occur any time in the middle of parsing, and `xpd->current` may not actually be pointing to the root of the parsed tree. Thus we need to walk back up before freeing the xmlnode. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=34988
6a017d19a63a8368dc60d39806eebf0f9f1b0810
grim
QuLogic
grim
  1. Ship It!
  2. 
      
grim
grim
grim
grim
Review request changed
Status:
Completed