|
From: | cvs-commit at gcc dot gnu.org |
Subject: | [Bug binutils/22245] Potential UB in bfd_set_error |
Date: | Wed, 04 Oct 2017 03:59:56 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22245 --- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Alan Modra <address@hidden>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9ba5f27cdd15d22d6c5739ff5d2b1c81d796e114 commit 9ba5f27cdd15d22d6c5739ff5d2b1c81d796e114 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. -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |