+2001-05-02 Jakub Jelinek <jakub@redhat.com>
+
+ * tradcpp.c (do_define): Make sure we don't walk past limit.
+
2000-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* config/rs6000/rs6000.c (rs6000_legitimate_address): Allow any stack
+2001-05-02 Jakub Jelinek <jakub@redhat.com>
+
+ * gcc.dg/cpp/tr-define.c: New test.
+
2001-05-01 Loren J. Rittle <ljrittle@acm.org>
* g++.old-deja/g++.abi/cxa_vec.C: Get malloc() from
}
}
- ++bp; /* skip paren */
- while (is_nvspace (*bp)) /* and leading whitespace */
+ ++bp; /* skip paren */
+ while (is_nvspace (*bp) && bp < limit) /* and leading whitespace */
++bp;
/* now everything from bp before limit is the definition. */
defn = collect_expansion (bp, limit, argno, arg_ptrs);
}
} else {
/* simple expansion or empty definition; skip leading whitespace */
- while (is_nvspace (*bp))
+ while (is_nvspace (*bp) && bp < limit)
++bp;
/* now everything from bp before limit is the definition. */
defn = collect_expansion (bp, limit, -1, 0);