libopenmpt: add missing avio_read return value check
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Sun, 1 Jan 2017 19:27:50 +0000 (20:27 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 16 Jan 2017 01:54:04 +0000 (02:54 +0100)
commit367cac7827870054ae3bd6d4517e7b13f4f3f72c
treeb85e1b2a3d659dc512163be0c638be5ff49a97bf
parentc2500d62c68a1e4c929cd5096f6617b56268d4e8
libopenmpt: add missing avio_read return value check

This fixes heap-buffer-overflows in libopenmpt caused by interpreting
the negative size value as unsigned size_t.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Reviewed-by: Jörn Heusipp <osmanx@problemloesungsmaschine.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/libopenmpt.c