subparse: don't deref a potentially NULL variable
authorMatthew Waters <matthew@centricular.com>
Thu, 28 Apr 2022 05:32:27 +0000 (15:32 +1000)
committerMatthew Waters <matthew@centricular.com>
Thu, 28 Apr 2022 05:35:12 +0000 (15:35 +1000)
commit0f9f179beccbaf3b8ea3355dfecdb91eca23389b
tree61c0fa92383cf1215d00adfa394f9d0eb5d1086b
parent4047653275e4ac9c14ab89eaaa5ce4ff2b90207a
subparse: don't deref a potentially NULL variable

If the html SAMI data is malformed, then retrieving the attribute name
may fail.  We then cannot retrieve the attribute value.

Fixes: https://oss-fuzz.com/testcase-detail/4700130671984640
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2317>
subprojects/gst-plugins-base/gst/subparse/samiparse.c