|
From: | cvs-commit at gcc dot gnu.org |
Subject: | [Bug binutils/28687] Undefined behavior in bfd/dwarf1.c |
Date: | Thu, 16 Dec 2021 04:10:32 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28687 --- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Alan Modra <amodra@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=05f62e0c9a0b14e211c6b2b6234095b50794b20b commit 05f62e0c9a0b14e211c6b2b6234095b50794b20b Author: Alan Modra <amodra@gmail.com> Date: Thu Dec 16 10:50:58 2021 +1030 Re: Fix an undefined behaviour in the BFD library's DWARF parser Using an unsigned int cast (to 32 bits) on a pointer difference (of possibly 64 bits) is wrong. Even though it will work on all real object files, the fuzzers will eventually find this hole. PR 28687 * dwarf1.c (parse_die): Cast pointer difference to size_t. Catch another possible pointer overflow. -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |