diff options
author | Gregg Townsend <gmt@cs.arizona.edu> | 1999-08-26 17:00:57 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 1999-08-26 10:00:57 -0700 |
commit | ee5cd6389e7e061c5469e3cb28cfcad997970b65 (patch) | |
tree | b8711823c88cd9416222ee9be36bf2899526543f /gcc | |
parent | b5a3b7379916acf848f01b1734a64005919b0b7a (diff) | |
download | gcc-ee5cd6389e7e061c5469e3cb28cfcad997970b65.zip gcc-ee5cd6389e7e061c5469e3cb28cfcad997970b65.tar.gz gcc-ee5cd6389e7e061c5469e3cb28cfcad997970b65.tar.bz2 |
verify.c (verify_jvm_instructions): Don't check instruction validity beyond end of method.
Wed Aug 25 15:37:15 1999 Gregg Townsend <gmt@cs.arizona.edu>
* verify.c (verify_jvm_instructions): Don't check instruction
validity beyond end of method.
From-SVN: r28897
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/verify.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 3803691..6abba84 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -4,6 +4,11 @@ Thu Aug 26 09:10:58 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> to set the column number. (qualify_ambiguous_name): Take WFL wrappers into account. +Wed Aug 25 15:37:15 1999 Gregg Townsend <gmt@cs.arizona.edu> + + * verify.c (verify_jvm_instructions): Don't check instruction + validity beyond end of method. + 1999-08-25 Tom Tromey <tromey@cygnus.com> * jvspec.c (lang_specific_driver): Correctly handle --help again. diff --git a/gcc/java/verify.c b/gcc/java/verify.c index d665a16..8b08a8a 100644 --- a/gcc/java/verify.c +++ b/gcc/java/verify.c @@ -400,7 +400,8 @@ verify_jvm_instructions (jcf, byte_ops, length) || handler_pc < 0 || handler_pc >= length || (handler_pc >= start_pc && handler_pc < end_pc) || ! (instruction_bits [start_pc] & BCODE_INSTRUCTION_START) - || ! (instruction_bits [end_pc] & BCODE_INSTRUCTION_START) + || (end_pc < length && + ! (instruction_bits [end_pc] & BCODE_INSTRUCTION_START)) || ! (instruction_bits [handler_pc] & BCODE_INSTRUCTION_START)) { error ("bad pc in exception_table"); |