[Bug lto/122515] Integer overflow on i686 when getting offsets in large archives
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 3 14:10:00 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122515
--- Comment #17 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Siddhesh Poyarekar
<siddhesh@gcc.gnu.org>:
https://gcc.gnu.org/g:57f1f6bc2fdf42cc6dceaa6b104dd4c9bb84e622
commit r14-12188-g57f1f6bc2fdf42cc6dceaa6b104dd4c9bb84e622
Author: Siddhesh Poyarekar <siddhesh@gotplt.org>
Date: Mon Nov 24 20:32:08 2025 -0500
lto/122515: Avoid using SSIZE_MAX
SSIZE_MAX may not always be available, so build it using (size_t) -1
instead.
gcc/lto/ChangeLog:
PR lto/122515
* lto-common.cc (lto_read_section_data): Avoid using SSIZE_MAX.
Signed-off-by: Siddhesh Poyarekar <siddhesh@gotplt.org>
(cherry picked from commit fb9b614c675f66a7979a5f37ef60f32fab73abdd)
More information about the Gcc-bugs
mailing list