]> gcc.gnu.org Git - gcc.git/commitdiff
* verify.cc (skip_padding): Fail if padding byte is nonzero.
authorTom Tromey <tromey@redhat.com>
Wed, 7 Nov 2001 19:15:54 +0000 (19:15 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Wed, 7 Nov 2001 19:15:54 +0000 (19:15 +0000)
From-SVN: r46830

libjava/ChangeLog
libjava/verify.cc

index a058dc5a9e7c0d58904e3848cbeee61f53ff1dd0..d0444666c5fb98e8840b7a957f6e0898afe712c0 100644 (file)
@@ -1,3 +1,7 @@
+2001-11-07  Tom Tromey  <tromey@redhat.com>
+
+       * verify.cc (skip_padding): Fail if padding byte is nonzero.
+
 2001-11-06  Tom Tromey  <tromey@redhat.com>
 
        * HACKING: Make people commit their own patches.
index a32af6857007e217a00727c723e3a290616bdb76..272a9ebfb3ab87dce87a45c976972da3a84d2dd4 100644 (file)
@@ -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.
This page took 0.069421 seconds and 5 git commands to generate.