xz/src/lzmainfo
Tobias Stoeckmann aef9a25b32
lzmainfo: Avoid integer overflow
The MB output can overflow with huge numbers. Most likely these are
invalid .lzma files anyway, but let's avoid garbage output.

lzmadec was adapted from LZMA Utils. The original code with this bug
was written in 2005, over 19 years ago.

Co-authored-by: Lasse Collin <lasse.collin@tukaani.org>
Closes: https://github.com/tukaani-project/xz/pull/144
(cherry picked from commit 76cfd0a9bb)
2024-09-18 20:53:11 +03:00
..
Makefile.am Build: Install translated lzmainfo man pages. 2024-02-17 16:23:14 +02:00
lzmainfo.1 Change most public domain parts to 0BSD. 2024-02-14 18:31:12 +02:00
lzmainfo.c lzmainfo: Avoid integer overflow 2024-09-18 20:53:11 +03:00
lzmainfo_w32res.rc Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00