* macro.c (get_any_string): Correct logic for not going beyond end
authorHans-Peter Nilsson <hp@axis.com>
Mon, 11 Nov 2002 08:42:52 +0000 (08:42 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Mon, 11 Nov 2002 08:42:52 +0000 (08:42 +0000)
of in->ptr[].

gas/ChangeLog
gas/macro.c

index 4f25aae6e3cc054916a009095d30ab5b43c03170..e4e95b532bbb7db777712afe4b160ab9e7fca18f 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-11  Hans-Peter Nilsson  <hp@bitrange.com>
+
+       * macro.c (get_any_string): Correct logic for not going beyond end
+       of in->ptr[].
+
 2002-11-10  Hans-Peter Nilsson  <hp@bitrange.com>
 
        * config/tc-mmix.c (get_putget_operands): Mark both possible
index 08424317c4a3d023e072e34e47ddd767107407dd..3f2aaf6118f6c833f714b1c9ebcc6697f8afba79 100644 (file)
@@ -366,7 +366,7 @@ get_any_string (idx, in, out, expand, pretend_quoted)
 
   if (idx < in->len)
     {
-      if (in->len > 2 && in->ptr[idx + 1] == '\'' && ISBASE (in->ptr[idx]))
+      if (in->len > idx + 2 && in->ptr[idx + 1] == '\'' && ISBASE (in->ptr[idx]))
        {
          while (!ISSEP (in->ptr[idx]))
            sb_add_char (out, in->ptr[idx++]);
This page took 0.028806 seconds and 4 git commands to generate.