Skip to content

Commit

Permalink
Fix compute budget error
Browse files Browse the repository at this point in the history
  • Loading branch information
mjain-jump committed Sep 12, 2024
1 parent 426e5c2 commit 5b25c21
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
23 changes: 12 additions & 11 deletions contrib/test/txn-fixtures/program-tests.list
Original file line number Diff line number Diff line change
@@ -1,39 +1,40 @@
dump/test-vectors/txn/fixtures/programs/2418705d8008ed1bd58108b4e9ce43ae111a1cdc_1870939.fix
dump/test-vectors/txn/fixtures/programs/31837b434273533d354985aa1dfdde5edf8fabe1_85273.fix
dump/test-vectors/txn/fixtures/programs/81e2a423431d64b80c68120e7e1e04d5829b7bbc_2924287.fix
dump/test-vectors/txn/fixtures/programs/923cbadb9bcfc4bfc32f3985b4faeade40521a38_2611281.fix
dump/test-vectors/txn/fixtures/programs/9370046a7dc9d68d4bf9643dd82711c8ee701411_1019687.fix
dump/test-vectors/txn/fixtures/programs/b36baad24080b5661df759c80df5ee772200660b_1077333.fix
dump/test-vectors/txn/fixtures/programs/b36baad24080b5661df759c80df5ee772200660b_1077524.fix
dump/test-vectors/txn/fixtures/programs/b36baad24080b5661df759c80df5ee772200660b_1077733.fix
dump/test-vectors/txn/fixtures/programs/b740372ea85fabe1a6be1648b8617393e45a26ac_1091379.fix
dump/test-vectors/txn/fixtures/programs/c4122d1a1f6d3c04d1027c1ad82ec1ad200a8aa9_138422.fix
dump/test-vectors/txn/fixtures/programs/crash-0ae873089c62df6e15d3fc0a271485da355874c8.fix
dump/test-vectors/txn/fixtures/programs/crash-10c291c5d8f688fa03b3007887e577e636d2ea79.fix
dump/test-vectors/txn/fixtures/programs/crash-266f593b1f2314b84cfde121192e747bb57b4e6e.fix
dump/test-vectors/txn/fixtures/programs/crash-2a071a64139bf15f205d9284c323d2ed75b40a00.fix
dump/test-vectors/txn/fixtures/programs/crash-3267f556a7239eb9191fd5489db0341675fbbfd4.fix
dump/test-vectors/txn/fixtures/programs/crash-3354ca5c9ba1c2ea78c33855ec5ced47dcf9f29e.fix
dump/test-vectors/txn/fixtures/programs/crash-35325b58777ff62396ae18f13047a8fe2260d1b8.fix
dump/test-vectors/txn/fixtures/programs/crash-38b53303426b0cb17570b27f89be658a890b867d-feature.fix
dump/test-vectors/txn/fixtures/programs/crash-38b53303426b0cb17570b27f89be658a890b867d.fix
dump/test-vectors/txn/fixtures/programs/crash-3cdf49a1820462499f5b27e90cf0b0301ae7477c.fix
dump/test-vectors/txn/fixtures/programs/crash-42295e53abb4382e2d579d46dcb1b20e63f030ea.fix
dump/test-vectors/txn/fixtures/programs/crash-4d5e41502e6da9e5a1cd3da1192cddc9a6227998.fix
dump/test-vectors/txn/fixtures/programs/crash-5ae3bce309cb0a20eaf56557bbb88330241193aa.fix
dump/test-vectors/txn/fixtures/programs/crash-66a0c3cfe73c36621d446ce08d9e23fd5b431c6f.fix
dump/test-vectors/txn/fixtures/programs/crash-6aa10f902c19e5597dc9fe11011fc737554ffc51.fix
dump/test-vectors/txn/fixtures/programs/crash-6ac1f183ec533a9ef01c6b19ac8938ade3b12354.fix
dump/test-vectors/txn/fixtures/programs/crash-6ef8cb5316bd5ce7aba8f27053acc63cb381780e.fix
dump/test-vectors/txn/fixtures/programs/crash-7e02f4f1d5a99ea4cd212b02380e9ea3f79d758e.fix
dump/test-vectors/txn/fixtures/programs/crash-9862181096d2042b0e608becb9e562afdbcbb4c9.fix
dump/test-vectors/txn/fixtures/programs/crash-a67b89b6716ffadda9cb83d7196a6ed2d618add6.fix
dump/test-vectors/txn/fixtures/programs/crash-c1012131339de92a06c99c793257fc5ff3c6af8b.fix
dump/test-vectors/txn/fixtures/programs/crash-ddecbb3f2adc4562fbf3502a19a31d06a5c3e230.fix
dump/test-vectors/txn/fixtures/programs/crash-e3eda019052824e98491250efb7219598227427b.fix
dump/test-vectors/txn/fixtures/programs/crash-ea899f146d047a3428f23aa0512d2f144aeae609.fix
dump/test-vectors/txn/fixtures/programs/crash-eb9e4a94882cda840fa4d8d8a390564ad7443ee2.fix
dump/test-vectors/txn/fixtures/programs/crash-ebdcdc6274bbf5f326439bf13868124500671966.fix
dump/test-vectors/txn/fixtures/programs/crash-f2a184eee1b1e6d5d455923d93825767843fcea6.fix
dump/test-vectors/txn/fixtures/programs/d5e2332f53032ce4428b0b55e3a97c080c1db63e_1034518.fix
dump/test-vectors/txn/fixtures/programs/deff84b60ea3c6284e621b4229f402c4274e4968_1446008.fix
dump/test-vectors/txn/fixtures/programs/ed4565e33252bca4dc606bdce4aa48a650e75048_1366919.fix
dump/test-vectors/txn/fixtures/programs/crash-3354ca5c9ba1c2ea78c33855ec5ced47dcf9f29e.fix
dump/test-vectors/txn/fixtures/programs/crash-6ac1f183ec533a9ef01c6b19ac8938ade3b12354.fix
dump/test-vectors/txn/fixtures/programs/crash-38b53303426b0cb17570b27f89be658a890b867d.fix
dump/test-vectors/txn/fixtures/programs/crash-38b53303426b0cb17570b27f89be658a890b867d-feature.fix
dump/test-vectors/txn/fixtures/programs/crash-10c291c5d8f688fa03b3007887e577e636d2ea79.fix
dump/test-vectors/txn/fixtures/programs/crash-42295e53abb4382e2d579d46dcb1b20e63f030ea.fix
dump/test-vectors/txn/fixtures/programs/crash-6ef8cb5316bd5ce7aba8f27053acc63cb381780e.fix
dump/test-vectors/txn/fixtures/programs/crash-f2a184eee1b1e6d5d455923d93825767843fcea6.fix
dump/test-vectors/txn/fixtures/programs/2418705d8008ed1bd58108b4e9ce43ae111a1cdc_1870939.fix
dump/test-vectors/txn/fixtures/programs/9370046a7dc9d68d4bf9643dd82711c8ee701411_1019687.fix
dump/test-vectors/txn/fixtures/programs/crash-ea899f146d047a3428f23aa0512d2f144aeae609.fix
3 changes: 2 additions & 1 deletion src/flamenco/runtime/program/fd_compute_budget_program.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ int fd_executor_compute_budget_program_execute_instructions( fd_exec_txn_ctx_t *
updated_requested_heap_size = instruction.inner.request_heap_frame;

if( FD_UNLIKELY( !sanitize_requested_heap_size( updated_requested_heap_size ) ) ) {
return FD_EXECUTOR_INSTR_ERR_INVALID_INSTR_DATA;
FD_TXN_ERR_FOR_LOG_INSTR( ctx, FD_EXECUTOR_INSTR_ERR_INVALID_INSTR_DATA, i );
return FD_RUNTIME_TXN_ERR_INSTRUCTION_ERROR;
}
break;
}
Expand Down

0 comments on commit 5b25c21

Please sign in to comment.