lavf/id3v2: fail read_apic on EOF reading mimetype
authorchcunningham <chcunningham@chromium.org>
Fri, 14 Dec 2018 21:44:07 +0000 (13:44 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 14 Jan 2019 23:57:27 +0000 (00:57 +0100)
commit490a5253ca898bc6c9d58571cd2c8bed7f053a68
tree61ecde094ed6c00016aafc2a7c83873ad19c0f5b
parent9925adcd68471459aa60d6a3e2895cec5f2be85b
lavf/id3v2: fail read_apic on EOF reading mimetype

avio_read may return EOF, leaving the mimetype array unitialized. fail
early when this occurs to avoid using the array in an unitialized state.

Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit ee1e39a576977fd38c3b94fc56125d31d38833e9)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/id3v2.c