History

faxcompr: fix out of array read

Michael Niedermayer committed 14 years ago

Commit 5891e451 parent 911519c1 file · +1 −1Browse files

Unified · Split

libavcodec/faxcompr.c+1−1
@@ -228,7 +228,7 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb, · 227 unmodified lines
228 mode = !mode;228 mode = !mode;
229 }229 }
230 //sync line pointers230 //sync line pointers
231 while(run_off <= offs){231 while(offs < width && run_off <= offs){
232 run_off += *ref++;232 run_off += *ref++;
233 run_off += *ref++;233 run_off += *ref++;
234 }234 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t