wbmp: getmbi: use unsigned int to avoid undefined shift behavior

oss-fuzz pointed out:
wbmp.c:48:14: runtime error: left shift of 253751679 by 7 places cannot be represented in type 'int'

See previous commit for more details.
master
Mike Frysinger 2018-01-25 23:25:56 -05:00
parent 772d0107a6
commit a8f1d5cab0
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@
*/
int getmbi(int (*getin) (void *in), void *in)
{
int i, mbi = 0;
unsigned int mbi = 0;
int i;
do {
i = getin(in);