History

avcodec/dds: Fix runtime error: left shift of 145 by 24 places cannot be represented in type 'int'

Fixes: 1891/clusterfuzz-testcase-minimized-6274417925554176

Michael Niedermayer committed 9 years ago

Commit c49fa2a1 parent f3da6fb1 file · +1 −1Browse files

Unified · Split

libavcodec/dds.c+1−1
@@ -687,7 +687,7 @@ static int dds_decode(AVCodecContext *avctx, void *data, · 686 unmodified lines
687 (frame->data[1][2+i*4]<<0)+687 (frame->data[1][2+i*4]<<0)+
688 (frame->data[1][1+i*4]<<8)+688 (frame->data[1][1+i*4]<<8)+
689 (frame->data[1][0+i*4]<<16)+689 (frame->data[1][0+i*4]<<16)+
690 (frame->data[1][3+i*4]<<24)690 ((unsigned)frame->data[1][3+i*4]<<24)
691 );691 );
692 }692 }
693 frame->palette_has_changed = 1;693 frame->palette_has_changed = 1;

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