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