aaa1c3
--- binutils.orig/bfd/coffgen.c	2022-04-25 13:43:52.724745386 +0100
aaa1c3
+++ binutils-2.30/bfd/coffgen.c	2022-04-25 13:46:39.583596137 +0100
aaa1c3
@@ -1838,10 +1838,7 @@ coff_get_normalized_symtab (bfd *abfd)
aaa1c3
       internal_ptr->is_sym = TRUE;
aaa1c3
 
aaa1c3
       /* PR 17512: file: 1353-1166-0.004.  */
aaa1c3
-      if (symbol_ptr->u.syment.n_sclass == C_FILE
aaa1c3
-	  && symbol_ptr->u.syment.n_numaux > 0
aaa1c3
-	  && raw_src + symesz + symbol_ptr->u.syment.n_numaux
aaa1c3
-	  * symesz > raw_end)
aaa1c3
+      if (symbol_ptr->u.syment.n_numaux > ((raw_end - 1) - raw_src) / symesz)
aaa1c3
 	{
aaa1c3
 	  bfd_release (abfd, internal);
aaa1c3
 	  return NULL;