5 Sep
2016
5 Sep
'16
8:22 a.m.
2016-09-05 9:21 GMT+02:00 Michael Niedermayer <michael@niedermayer.cc>:
On Sun, Sep 04, 2016 at 08:58:44PM +0200, Carl Eugen Hoyos wrote:
@@ -159,6 +163,8 @@ static int pnm_decode_frame(AVCodecContext *avctx, void *data, } }else{ for (i = 0; i < avctx->height; i++) { + if (s->bytestream + n > s->bytestream_end) + continue;
having a pointer point outside of 0..array length is undefined behaviour (and can overflow in principle)
New patch attached. Thank you, Carl Eugen