PR25961, buffer overflow in coff_swap_aux_in
[deliverable/binutils-gdb.git] / bfd / coffswap.h
index 7c0be221075f3668fa9d227bbd67964d363528cc..f75001e0d26b33820df4306f4f5921a62746abfc 100644 (file)
@@ -399,7 +399,7 @@ coff_swap_aux_in (bfd *abfd,
 #if FILNMLEN != E_FILNMLEN
 #error we need to cope with truncating or extending FILNMLEN
 #else
-         if (numaux > 1)
+         if (numaux > 1 && coff_data (abfd)->pe)
            {
              if (indx == 0)
                memcpy (in->x_file.x_fname, ext->x_file.x_fname,
This page took 0.023138 seconds and 4 git commands to generate.