Merge pull request #1727 from kleisauke/oss-fuzz-24230

Fix undefined-shift in scanline_read_old
This commit is contained in:
John Cupitt 2020-07-21 18:05:32 +01:00 committed by GitHub
commit 7c413f8872
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -544,9 +544,9 @@ scanline_read_old( VipsSbuf *sbuf, COLR *scanline, int width )
if( scanline[0][RED] == 1 &&
scanline[0][GRN] == 1 &&
scanline[0][BLU] == 1 ) {
int i;
guint i;
for( i = scanline[0][EXP] << rshift;
for( i = ((guint32) scanline[0][EXP] << rshift);
i > 0 && width > 0; i-- ) {
copycolr( scanline[0], scanline[-1] );
scanline += 1;