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>
Wed, 25 Jan 2017 23:34:12 +0000 (00:34 +0100)
commit41fc098a8612ba1af98ea0713c929a1f32f3ae87
treeca5e83ddbcf89da06a747b3d1efe0df812fb7e85
parent3442c20c4d380d232120ba5c41283ded0125b348
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>
(cherry picked from commit 367cac7827870054ae3bd6d4517e7b13f4f3f72c)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/libopenmpt.c