More fixes for illegal memory accesses triggered by running objdump on fuzzed binaries.
[deliverable/binutils-gdb.git] / bfd / tekhex.c
index 63d7d8de5e073d1a752d24330163618cf928e672..ccc68f92d397306fe0a38f827af77d4f33a6b0fc 100644 (file)
@@ -397,7 +397,7 @@ first_phase (bfd *abfd, int type, char *src, char * src_end)
            return FALSE;
        }
       alt_section = NULL;
-      while (*src)
+      while (src < src_end && *src)
        {
          switch (*src)
            {
This page took 0.0239 seconds and 4 git commands to generate.