app-arch/bzip2: fix an error reported by ubsan
authorManoj Gupta <manojgupta@google.com>
Fri, 24 Aug 2018 17:43:58 +0000 (19:43 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Fri, 24 Aug 2018 17:47:29 +0000 (19:47 +0200)
commit66f614c51f017b0693f5aaeb5897db28ef3aff6c
tree63e00f289f7f7450c892f18ee7f2c4a8b5105d9c
parentb56fc087dc6e87d5c6f18fb72e0b7e57db940584
app-arch/bzip2: fix an error reported by ubsan

Use unsigned 1 for shifting instead of signed 1.

Fix an issue with shift caught by undefined behavior
sanitizer in clang.
bzip2-1.0.6/blocksort.c:255:7
runtime error: left shift of 1 by 31 places cannot be represented
in type 'int'.

Closes: https://github.com/gentoo/gentoo/pull/9688
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
app-arch/bzip2/bzip2-1.0.6-r10.ebuild [moved from app-arch/bzip2/bzip2-1.0.6-r9.ebuild with 98% similarity]
app-arch/bzip2/files/bzip2-1.0.6-ubsan-error.patch [new file with mode: 0644]