We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d597e87 commit da4ffceCopy full SHA for da4ffce
src/java_bytecode/java_bytecode_parser.cpp
@@ -712,6 +712,13 @@ void java_bytecode_parsert::rbytecode(
712
wide_instruction=true;
713
address++;
714
bytecode=read_u1();
715
+ // The only valid instructions following a wide byte are
716
+ // [ifald]load, [ifald]store, ret and iinc
717
+ // All of these have either format of v, or V
718
+ INVARIANT(
719
+ bytecodes[bytecode].format == 'v' || bytecodes[bytecode].format == 'V',
720
+ "Unexpected wide instruction: " +
721
+ id2string(bytecodes[bytecode].mnemonic));
722
}
723
724
instructions.push_back(instructiont());
0 commit comments