hlsdemux2: Fix typefind leak and invalid memory access
authorJan Schmidt <jan@centricular.com>
Wed, 10 Aug 2022 19:03:10 +0000 (05:03 +1000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 12 Aug 2022 13:52:59 +0000 (13:52 +0000)
commita242428532e8a272ebae8ce1a0fe111cfda798f7
tree7c6076db0f821a2d436f8bd0458c3c21eaee03d9
parenta6eb7254137639fbaaa9a0fc511b949077bfbc2c
hlsdemux2: Fix typefind leak and invalid memory access

When typefinding aggregates incoming data to a pending
typefind buffer and then succeeds in typefinding, it
leaks the aggregated buffer, and leaves the caller
accessing an unreffed buffer.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2873>
subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux.c