mp4: check STSZ size before allocation
commiteab4f05a98fff46bf2f3b46bec8161b2a22e1266
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 24 Nov 2017 18:01:01 +0000 (24 20:01 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 24 Nov 2017 19:54:24 +0000 (24 21:54 +0200)
treefb54408e12463c1d5c9dc3af541b8ed2ed5af6f0
parent866b7cee553b868e7379a6282c300c3f6f37c137
mp4: check STSZ size before allocation

This avoids allocating stupid amounts of memory.

Note: there is still an infinite loop if count == 0xffffffff
(with a suitably enormous input).
modules/demux/mp4/libmp4.c