From 0036428618ca8b4840df831c9b8b529e43bb5abd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Mei=C3=9Fner?= Date: Tue, 27 Aug 2024 15:37:21 +0200 Subject: [PATCH] Set is_executable flag upon initialization in loader-v4. --- programs/loader-v4/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/loader-v4/src/lib.rs b/programs/loader-v4/src/lib.rs index c35b67a45ff9ce..7f77636bcc60a5 100644 --- a/programs/loader-v4/src/lib.rs +++ b/programs/loader-v4/src/lib.rs @@ -198,6 +198,7 @@ pub fn process_instruction_truncate( LoaderV4State::program_data_offset().saturating_add(new_size as usize), )?; if is_initialization { + program.set_executable(true)?; let state = get_state_mut(program.get_data_mut()?)?; state.slot = 0; state.status = LoaderV4Status::Retracted;