Commit 0202e527 authored by blendin's avatar blendin Committed by Alexander Alekhin

Fix out of bounds write

parent 7997e7ae
...@@ -367,6 +367,9 @@ decode_rle4_bad: ; ...@@ -367,6 +367,9 @@ decode_rle4_bad: ;
gray_palette[code] ); gray_palette[code] );
line_end_flag = y - prev_y; line_end_flag = y - prev_y;
if( y >= m_height )
break;
} }
else if( code > 2 ) // absolute mode else if( code > 2 ) // absolute mode
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment