Fixes a buffer overflow when compiling assembler for the MinGW targets.
PR binutils/17754 * internal.h (internal_auxent): Increase size of x_fname field to 20 to allow for PE format's longer file names.
This commit is contained in:
parent
85880250e5
commit
60ebc25751
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2015-01-06 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR binutils/17754
|
||||
* internal.h (internal_auxent): Increase size of x_fname field to
|
||||
20 to allow for PE format's longer file names.
|
||||
|
||||
2015-01-01 Alan Modra <amodra@gmail.com>
|
||||
|
||||
Update year range in copyright notice of all files.
|
||||
|
|
|
@ -588,7 +588,11 @@ union internal_auxent
|
|||
|
||||
union
|
||||
{
|
||||
char x_fname[FILNMLEN];
|
||||
/* PR 17754: We use to FILNMLEN for the size of the x_fname
|
||||
array, but that cause problems as PE targets use a larger
|
||||
value. We cannot use their definition of EFILNMLEN as this
|
||||
header can be used without including any PE headers. */
|
||||
char x_fname[20];
|
||||
struct
|
||||
{
|
||||
long x_zeroes;
|
||||
|
|
Loading…
Reference in a new issue