yara-x icon indicating copy to clipboard operation
yara-x copied to clipboard

Raise warning on imposible conditions with `uintXX` functions

Open plusvic opened this issue 2 years ago • 0 comments

This condition is an impossible one: uint8(0) == 0xABCDE. As uint8 returns a single byte, the maximum possible result is 0xFF or 255. The same occurs with uint16 and uint32.

A condition like this could raise a warning.

plusvic avatar May 06 '23 19:05 plusvic