[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/24829] readelf: multi interger overflow in readelf.c and d
From: |
amodra at gmail dot com |
Subject: |
[Bug binutils/24829] readelf: multi interger overflow in readelf.c and dwarf.c |
Date: |
Wed, 21 Aug 2019 12:32:57 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=24829
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amodra at gmail dot com
--- Comment #10 from Alan Modra <amodra at gmail dot com> ---
> I get the "block_start + uvalue" can overflow, but won't this trigger the
> "data < block_start" part of the test?
Not necessarily. The pointers may only be 32 bit, which with a 64-bit uvalue
leads to many values of uvalue > 4G that wrap to a "valid" range. Pointer
comparisons are a pain. It's much better in this situation to calculate the
max valid size left then compare that with uvalue.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/24829] readelf: multi interger overflow in readelf.c and dwarf.c, tfx_sec at hotmail dot com, 2019/08/20
- [Bug binutils/24829] readelf: multi interger overflow in readelf.c and dwarf.c, nickc at redhat dot com, 2019/08/21
- [Bug binutils/24829] readelf: multi interger overflow in readelf.c and dwarf.c,
amodra at gmail dot com <=
- [Bug binutils/24829] readelf: multi interger overflow in readelf.c and dwarf.c, tfx_sec at hotmail dot com, 2019/08/21
- [Bug binutils/24829] readelf: multi interger overflow in readelf.c and dwarf.c, nickc at redhat dot com, 2019/08/22
- [Bug binutils/24829] readelf: multi interger overflow in readelf.c and dwarf.c, tfx_sec at hotmail dot com, 2019/08/22
- [Bug binutils/24829] readelf: multi interger overflow in readelf.c and dwarf.c, cvs-commit at gcc dot gnu.org, 2019/08/23
- [Bug binutils/24829] readelf: multi interger overflow in readelf.c and dwarf.c, nickc at redhat dot com, 2019/08/23