fix: NOP is not 9 if minor version >= 13

This commit is contained in:
2025-12-17 23:49:38 +08:00
parent 3c104c02ac
commit 87b1c7a86e
3 changed files with 7 additions and 7 deletions

View File

@@ -216,7 +216,7 @@ void PycCode::pyarmorDecryptCoCode(unsigned long consts_index, PycModule *mod)
// Assume tail of code is not used there
memset(
&code_bytes[desc->decrypt_length],
9, // NOP
mod->verCompare(3, 13) == 0 ? 30 : mod->verCompare(3, 14) == 0 ? 27 : 9, // NOP
desc->decrypt_begin_index);
}