OSDN Git Service

Limit fsize before adding to pointer.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sat, 30 Jul 2011 09:45:15 +0000 (11:45 +0200)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 31 Jul 2011 17:40:08 +0000 (19:40 +0200)
commitb39f872a41b92a31589052c8f914c5b52f206fd0
treea8d4ccbeba53a78f6a6a49dd7355e71e9e359e38
parent8400607267458371398b0d3f170b6c0d9c688453
Limit fsize before adding to pointer.

This avoids a theoretically possible pointer arithmetic overflow
which would lead to a crash due to reading from NULL page.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
libavformat/aacdec.c