|
From: | cvs-commit at gcc dot gnu.org |
Subject: | [Bug binutils/22245] Potential UB in bfd_set_error |
Date: | Wed, 04 Oct 2017 04:47:04 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22245 --- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The binutils-2_29-branch branch has been updated by Alan Modra <address@hidden>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=99ca76d3db25af8e017d7d54df677db0561907f5 commit 99ca76d3db25af8e017d7d54df677db0561907f5 Author: Pavel I. Kryukov <address@hidden> Date: Tue Oct 3 22:42:07 2017 +0300 PR22245, Fix potential UB in bfd_set_error Passing enum as a first argument to variadic argument function may lead to undefined behavior. The explanation on CERT site: https://www.securecoding.cert.org/confluence/display/cplusplus/ EXP58-CPP.+Pass+an+object+of+the+correct+type+to+va_start The bug was found by Kirill Nedostoev (address@hidden) when he tried to build GNU binutils with Clang 7. PR 22245 * bfd.c (bfd_set_error): Avoid UB on passing arg to va_start that undergoes default promotion. * bfd-in2.h: Regenerate. (cherry picked from commit 9ba5f27cdd15d22d6c5739ff5d2b1c81d796e114) -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |