mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibGfx: Fix global-buffer-overflow in interlaced GIF decode
Regressed with 57e10eadac
and immediately
caught by oss-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=30507
This commit is contained in:
parent
0c66e53544
commit
10420dee7e
Notes:
sideshowbarker
2024-07-18 22:33:17 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/10420dee7e4
1 changed files with 2 additions and 1 deletions
|
@ -404,7 +404,8 @@ static bool decode_frame(GIFLoadingContext& context, size_t frame_index)
|
|||
if (interlace_pass < 4)
|
||||
row = INTERLACE_ROW_OFFSETS[interlace_pass];
|
||||
} else {
|
||||
row += INTERLACE_ROW_STRIDES[interlace_pass];
|
||||
if (interlace_pass < 4)
|
||||
row += INTERLACE_ROW_STRIDES[interlace_pass];
|
||||
}
|
||||
} else {
|
||||
++row;
|
||||
|
|
Loading…
Reference in a new issue