projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* MAINTAINERS (Write After Approval): Add myself to the list.
[deliverable/binutils-gdb.git]
/
libiberty
/
cp-demangle.c
diff --git
a/libiberty/cp-demangle.c
b/libiberty/cp-demangle.c
index 61744390725ef1201ff3b58f5da166bb3976a2c7..8f1cfb17f87f2734e0b756390eeaa94a69dc87ab 100644
(file)
--- a/
libiberty/cp-demangle.c
+++ b/
libiberty/cp-demangle.c
@@
-2337,7
+2337,11
@@
d_expr_primary (struct d_info *di)
}
s = d_str (di);
while (d_peek_char (di) != 'E')
- d_advance (di, 1);
+ {
+ if (d_peek_char (di) == '\0')
+ return NULL;
+ d_advance (di, 1);
+ }
ret = d_make_comp (di, t, type, d_make_name (di, s, d_str (di) - s));
}
if (d_next_char (di) != 'E')
This page took
0.022488 seconds
and
4
git commands to generate.