-
Tor Didriksen authored
The basic lookup function find_type() in typelib returns an int -1 in case of ambiguities. When this is converted to unsigned, and used as an argument for left-shift, we get undefined behaviour. Propagate the -1, and handle it as an error before doing any left-shifting. Change-Id: Ia8508889a0dfb5fc044f37f65ce1544697aa486e
Tor Didriksen authoredThe basic lookup function find_type() in typelib returns an int -1 in case of ambiguities. When this is converted to unsigned, and used as an argument for left-shift, we get undefined behaviour. Propagate the -1, and handle it as an error before doing any left-shifting. Change-Id: Ia8508889a0dfb5fc044f37f65ce1544697aa486e
Loading