detect RLE overflow in radiance
old-style radiance RLE could overflow harmlessly see https://oss-fuzz.com/testcase-detail/4918518961930240
This commit is contained in:
parent
58b6d73a70
commit
ba45c87b50
@ -554,6 +554,11 @@ scanline_read_old( VipsSbuf *sbuf, COLR *scanline, int width )
|
||||
}
|
||||
|
||||
rshift += 8;
|
||||
|
||||
/* This can happen with badly-formed input files.
|
||||
*/
|
||||
if( rshift > 24 )
|
||||
return( -1 );
|
||||
}
|
||||
else {
|
||||
scanline += 1;
|
||||
|
Loading…
Reference in New Issue
Block a user