Fix illegal memory accesses trigeered when linking corrupt input files.
[deliverable/binutils-gdb.git] / bfd / hash.c
index 43c6005e7d88244dcf4a4b368d10942cc5816280..852a95e05d432a64f07b99ada03422af292b88a7 100644 (file)
@@ -435,6 +435,7 @@ bfd_hash_hash (const char *string, unsigned int *lenp)
   unsigned int len;
   unsigned int c;
 
+  BFD_ASSERT (string != NULL);
   hash = 0;
   len = 0;
   s = (const unsigned char *) string;
This page took 0.023378 seconds and 4 git commands to generate.