summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9e691ad)
* rclex.l (handle quotes): Stop parsing hex notation escaped
chars after the first two digits,
+2005-10-11 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * rclex.l (handle quotes): Stop parsing hex notation escaped
+ chars after the first two digits,
+
2005-10-11 Nick Clifton <nickc@redhat.com>
PR binutils/1437
2005-10-11 Nick Clifton <nickc@redhat.com>
PR binutils/1437
char *ret, *s;
const char *t;
int ch;
char *ret, *s;
const char *t;
int ch;
ret = get_string (strlen (input) + 1);
ret = get_string (strlen (input) + 1);
+ /* We only handle single byte chars here. Make sure
+ we finish an escape sequence like "/xB0ABC" after
+ the first two digits. */
+ num_xdigits = 2;
+ while (num_xdigits--)
{
if (*t >= '0' && *t <= '9')
ch = (ch << 4) | (*t - '0');
{
if (*t >= '0' && *t <= '9')
ch = (ch << 4) | (*t - '0');