Ticket #764 (closed defect: worksforme)
Increasing robustness of runlength decoding for scantable access in mpeg12.c
|Reported by:||erik||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
When decoding australian MPEG2 video broadcast with many stream errors the decoder causes a memory error crash because the index into the scan table is far outside the array.
The simple dirty fix is to mask the index into the scan table to a value between 0 and 63 to prevent memory access error.
The attached diff files documents the required patch.
As a result the robustness of the decoder has increased.