* verify.cc (skip_padding): Fail if padding byte is nonzero.

From-SVN: r46830
This commit is contained in:
Tom Tromey 2001-11-07 19:15:54 +00:00 committed by Tom Tromey
parent 64ef1ee2d5
commit b11946180d
2 changed files with 6 additions and 1 deletions

View 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.

View 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.