tag: id3v2: fix frame size check and potential invalid reads
authorTim-Philipp Müller <tim@centricular.com>
Wed, 3 Mar 2021 01:08:25 +0000 (01:08 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 15 Mar 2021 11:44:22 +0000 (11:44 +0000)
commitf4a1428a6997658625d529b9db60fde812fbf1ee
treee22644be6b8fe0377532995a16916f6ba5236470
parent1a87a6572e74c0b4b0c18e91d7b6e9574298e922
tag: id3v2: fix frame size check and potential invalid reads

Check the right variable when checking if there's
enough data left to read the frame size.

Closes https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/876

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1065>
gst-libs/gst/tag/id3v2frames.c