phoboslab / pl_mpeg

Single file C library for decoding MPEG1 Video and MP2 Audio
799 stars 58 forks source link

Another segfault found by AFL #3

Closed pcwalton closed 5 years ago

pcwalton commented 5 years ago

Run through pl_mpeg_extract_frames and observe memory corruption.

bad2.mpg.gz

phoboslab commented 5 years ago

Fixed with https://github.com/phoboslab/pl_mpeg/commit/46e24ec11ae30ea3788126e5323952c8fedec963 and https://github.com/phoboslab/pl_mpeg/commit/5fe30d90a8a66de1db8e859747c7f9a09ff4cd65