Fix an assert in purple_markup_html_to_xhtml

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

Information

pidgin/pidgin
release-2.x.y

Reviewers

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 ID
Fix an assert in purple_markup_html_to_xhtml
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
2b4c1ad76f9be1c1074923d25b68a4a3c5148657
grim
  1. Ship It!
  2. 
      
grim
grim
Review request changed

Status: Closed (submitted)

Loading...