wavparse: guard against overflow when comparing chunk sizes
authorTim-Philipp Müller <tim@centricular.com>
Sun, 23 May 2021 12:24:21 +0000 (13:24 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 23 May 2021 14:17:27 +0000 (15:17 +0100)
commit3dd8de1d7caa04d47490541213f28ed73c5c9d76
tree8ec170f213c7b5c1228a00f947ca006ec608c605
parent4f2189a6e172ec8a244666cdad1d48fe5b7cd432
wavparse: guard against overflow when comparing chunk sizes

Could be rewritten as lsize > (size - 8) a well, but the
extra check seems clearer. Doesn't look like it was problematic,
lsize wasn't actually used when parsing the sub-chunks.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/994>
gst/wavparse/gstwavparse.c