Skip to content

Commit e732e43

Browse files
committed
fixup! pyth: introduce pyth accumulator library
1 parent 33eed6d commit e732e43

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

runtime/src/bank.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2566,6 +2566,9 @@ impl Bank {
25662566
}
25672567

25682568
let end_offset = header_len + end;
2569+
if end_offset as usize > data.len() {
2570+
break;
2571+
}
25692572
let accumulator_input_data = &data[header_begin as usize..end_offset as usize];
25702573
inputs.push(accumulator_input_data);
25712574
header_begin = end_offset;

0 commit comments

Comments
 (0)