aboutsummaryrefslogtreecommitdiff
path: root/libiberty/cp-demangle.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2006-09-22 19:19:32 +0000
committerDJ Delorie <dj@redhat.com>2006-09-22 19:19:32 +0000
commite63f184e3f8cb7710ab1c76379c77a0728a6360a (patch)
tree31fd9095a450bb017faae093664579d25c00b87f /libiberty/cp-demangle.c
parent5e02f92ecddc25fed29672c2002645eecfe59139 (diff)
downloadgdb-e63f184e3f8cb7710ab1c76379c77a0728a6360a.zip
gdb-e63f184e3f8cb7710ab1c76379c77a0728a6360a.tar.gz
gdb-e63f184e3f8cb7710ab1c76379c77a0728a6360a.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/cp-demangle.c')
-rw-r--r--libiberty/cp-demangle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c
index c7ee878..2fa5978 100644
--- a/libiberty/cp-demangle.c
+++ b/libiberty/cp-demangle.c
@@ -2505,6 +2505,8 @@ d_substitution (struct d_info *di, int prefix)
id = id * 36 + c - 'A' + 10;
else
return NULL;
+ if (id < 0)
+ return NULL;
c = d_next_char (di);
}
while (c != '_');