diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-07 19:15:54 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-07 19:15:54 +0000 |
commit | ed5e73d2e8d5ccf726f8a43d3d88de1e24d02d04 (patch) | |
tree | db9c0150b4d62539862cb9a1959ff9b3981fac15 /libjava/verify.cc | |
parent | fabdfbddc7b0b3748845c4548309f4d815c2c8aa (diff) | |
download | gcc-ed5e73d2e8d5ccf726f8a43d3d88de1e24d02d04.tar.gz |
* verify.cc (skip_padding): Fail if padding byte is nonzero.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46830 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/verify.cc')
-rw-r--r-- | libjava/verify.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/verify.cc b/libjava/verify.cc index a32af685700..272a9ebfb3a 100644 --- a/libjava/verify.cc +++ b/libjava/verify.cc @@ -1000,7 +1000,8 @@ private: void skip_padding () { while ((PC % 4) > 0) - get_byte (); + if (get_byte () != 0) + verify_fail ("found nonzero padding byte"); } // Return the subroutine to which the instruction at PC belongs. |