mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-19 15:34:18 +00:00
2005-10-11 Danny Smith <dannysmith@users.sourceforge.net>
* rclex.l (handle quotes): Stop parsing hex notation escaped chars after the first two digits,
This commit is contained in:
parent
9e691ad0b4
commit
0851f04365
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
@ -308,6 +308,7 @@ handle_quotes (const char *input, unsigned long *len)
|
||||
char *ret, *s;
|
||||
const char *t;
|
||||
int ch;
|
||||
int num_xdigits;
|
||||
|
||||
ret = get_string (strlen (input) + 1);
|
||||
|
||||
@ -389,7 +390,11 @@ handle_quotes (const char *input, unsigned long *len)
|
||||
case 'x':
|
||||
++t;
|
||||
ch = 0;
|
||||
while (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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user