|
From: | cvs-commit at gcc dot gnu.org |
Subject: | [Bug binutils/27291] False results/ misinformation, unpredictable behavior and potential crash through Integer Overflow in bfd_get_section_contents() |
Date: | Thu, 11 Feb 2021 01:40:11 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=27291 --- Comment #1 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=6db658c517bdfbf8e5b8c5a34caf3ff1eea332f1 commit 6db658c517bdfbf8e5b8c5a34caf3ff1eea332f1 Author: Alan Modra <amodra@gmail.com> Date: Thu Feb 11 09:53:17 2021 +1030 PR27291, integer overflow in bfd_get_section_contents Makes the code a little more elegant too. Note that the unsigned overflow reported here is well defined so this patch doesn't fix any real problem. PR 27291 * section.c (bfd_get_section_contents): Avoid possible overflow when range checking offset and count. (bfd_set_section_contents): Likewise. -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |