Fix zero-len slice translations (#12642)

This commit is contained in:
Jack May
2020-10-02 17:45:39 -07:00
committed by GitHub
parent 0ef3cac1f8
commit d0aa8a6446
6 changed files with 48 additions and 0 deletions

View File

@ -21,6 +21,10 @@ fn process_instruction(
) -> ProgramResult {
info!("Invoked program");
if instruction_data.is_empty() {
return Ok(());
}
match instruction_data[0] {
TEST_VERIFY_TRANSLATIONS => {
info!("verify data translations");