Skip to content

Commit bf8d499

Browse files
two-heartmjain-jump
authored andcommitted
flamenco: add missing err check in extend_lookup_table
1 parent 7447705 commit bf8d499

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/flamenco/runtime/program/fd_address_lookup_table_program.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,9 @@ extend_lookup_table( fd_exec_instr_ctx_t * ctx,
688688
uchar * lut_data_mut = NULL;
689689
ulong lut_data_mut_len = 0;
690690
err = fd_borrowed_account_get_data_mut( &lut_acct, &lut_data_mut, &lut_data_mut_len );
691+
if( FD_UNLIKELY( err ) ) {
692+
return err;
693+
}
691694
lut_acct.acct->vt->resize( lut_acct.acct, new_table_data_sz );
692695

693696
/* https://github.com/solana-labs/solana/blob/v1.17.4/programs/address-lookup-table/src/processor.rs#L307-L310 */

0 commit comments

Comments
 (0)