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>
Thu, 21 Mar 2019 09:42:51 +0000 (10:42 +0100)
commite02f55a3c5c3761ddcbd326c62bdf571bb2be0b4
tree1190eded68ce0f11cbdeaad1778861597a844f69
parentb80d504412334a7341b15491b7327531a669e430
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