From 5fbb7c51ab93e4a27ebeba6196ad3c16000fa290 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 f44031f6f15021..6f875a478f3b6b 100644 --- a/programs/loader-v4/src/lib.rs +++ b/programs/loader-v4/src/lib.rs @@ -337,6 +337,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;