diff options
author | Fred Fish <fnf@specifix.com> | 1992-07-05 17:21:13 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1992-07-05 17:21:13 +0000 |
commit | 91fef76b2a5f78b706f6c32a2bda39e648fbf241 (patch) | |
tree | c46e17573c39d562dc8433d9fd0a2cd775d881b0 | |
parent | 264ad0728b6e5622bf2fb3672164e1b34ac4e5a1 (diff) | |
download | gdb-91fef76b2a5f78b706f6c32a2bda39e648fbf241.zip gdb-91fef76b2a5f78b706f6c32a2bda39e648fbf241.tar.gz gdb-91fef76b2a5f78b706f6c32a2bda39e648fbf241.tar.bz2 |
* Makefile.in (VERSION): Bump to 4.5.7.
* cplus-dem.c (demangle_args): Validate index for previously
seen type to guard against bogus values from malformed manglings.
* valops.c (value_struct_elt_for_reference): Guard against
blindly using NULL return value from lookup_symbol.
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/Makefile.in | 2 | ||||
-rw-r--r-- | gdb/cplus-dem.c | 4 |
3 files changed, 12 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 02d7e1e..758110c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +Sun Jul 5 09:43:28 1992 Fred Fish (fnf@cygnus.com) + + * Makefile.in (VERSION): Bump to 4.5.7. + * cplus-dem.c (demangle_args): Validate index for previously + seen type to guard against bogus values from malformed manglings. + * valops.c (value_struct_elt_for_reference): Guard against + blindly using NULL return value from lookup_symbol. + Sun Jul 5 09:46:43 1992 Stu Grossman (grossman at cygnus.com) * cadillac.c, cadillac-patches: Rename to energize.c and diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 3b76f6a..6c99944 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -162,7 +162,7 @@ CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${BFD_LIB} ${MMALLOC_LIB} ${LIBIBERTY} \ ADD_FILES = ${REGEX} ${ALLOCA} ${XM_ADD_FILES} ${TM_ADD_FILES} ADD_DEPS = ${REGEX1} ${ALLOCA1} ${XM_ADD_FILES} ${TM_ADD_FILES} -VERSION = 4.5.6 +VERSION = 4.5.7 DIST=gdb LINT=/usr/5bin/lint diff --git a/gdb/cplus-dem.c b/gdb/cplus-dem.c index 911e1b2..f3b3d88 100644 --- a/gdb/cplus-dem.c +++ b/gdb/cplus-dem.c @@ -1578,7 +1578,9 @@ demangle_args (declp, type, work) #ifdef ARM_DEMANGLING t--; #endif - if (t >= work -> ntypes) + /* Validate the type index. Protect against illegal indices from + malformed type strings. */ + if ((t < 0) || (t >= work -> ntypes)) { return (0); } |