Fix an assert in purple_markup_html_to_xhtml

Review Request #921 — Created Sept. 14, 2021 and submitted

QuLogic
pidgin/pidgin
release-2.x.y
pidgin

While g_string_free is NULL-safe, the assert for passing it in breaks
ossfuzz. This can happen if there is no src= in the img as expected.

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

Ran the test case from the bug against fuzz_html_to_xhtml

Summary
Fix an assert in purple_markup_html_to_xhtml
grim
  1. Ship It!
  2. 
      
grim
grim
Review request changed

Status: Closed (submitted)

Loading...