]> git.ipfire.org Git - thirdparty/gcc.git/commit
libbacktrace: add cast to avoid undefined shift
authorIan Lance Taylor <iant@golang.org>
Mon, 10 Feb 2025 23:03:31 +0000 (15:03 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 10 Feb 2025 23:03:31 +0000 (15:03 -0800)
commitd5c72da62d29cfa0fff532c66f28670c2dfcd75e
treef58736db2c73042993bd7260bba2aff6035a716b
parentd2ff1b78d70731db1b7adc1cbac7e44688828370
libbacktrace: add cast to avoid undefined shift

Patch from pgerell@github.

* elf.c (elf_uncompress_lzma_block): Add casts to avoid
potentially shifting a value farther than its type size.
libbacktrace/elf.c