mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user