Replace int -> uint to avoid signed integer overflow
authorRostislav Skudnov <rostislav@tuxera.com>
Wed, 1 Feb 2017 18:35:13 +0000 (18:35 +0000)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 4 Feb 2017 22:10:22 +0000 (23:10 +0100)
commit8762512fdb088acefb9f3ea5f7b1e1bf2d336ff3
tree309e04746b4bcb6f2ad645b29f7fcecfbff339e5
parentc31b54fd81690b3df3898437f5865674d06e6577
Replace int -> uint to avoid signed integer overflow

An example of such an error (should be compiled with DEBUG_SANITIZE):

runtime error: left shift of 1 by 31 places cannot be represented in
type 'int'

Signed-off-by: Rostislav Skudnov <rostislav@tuxera.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/libarchive/decompress_bunzip2.c
libbb/crc32.c
libbb/getopt32.c
libbb/pw_encrypt.c
miscutils/rx.c