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, 21 Jan 2019 06:53:26 +0000 (07:53 +0100)
commit45f5f2086ebe838b2aad7fa394fb1a2a31952ee8
treee778ad12505725e14c25e78b84da41440fe205a3
parent321c418b8715e9b3142648561dcd1fd6494a9d62
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