decompress_iob(): Cast value to unsigned char before shifting
authorFabian Keil <fk@fabiankeil.de>
Fri, 5 Feb 2021 12:27:13 +0000 (13:27 +0100)
committerFabian Keil <fk@fabiankeil.de>
Sun, 21 Feb 2021 16:30:16 +0000 (17:30 +0100)
commit9788f97d68076acffc11da82a9c65f06cd661b15
tree8d6e3c57f9541f98991be0530c19e7162d7cc457
parent88d5b57a4a639f88c937e7b22f6fe976b4380ce9
decompress_iob(): Cast value to unsigned char before shifting

Prevents a left-shift of a negative value which is undefined behavior.

Reported by: Joshua Rogers (Opera)
parsers.c