This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 771999278027b1930b0f2948ec8a9f24659446e6
Author:     Ramiro Polla <[email protected]>
AuthorDate: Thu Jun 25 23:45:53 2026 +0200
Commit:     Ramiro Polla <[email protected]>
CommitDate: Thu Jul 16 08:32:50 2026 +0000

    swscale/jit: implement ff_sws_jit_protect() for win32
    
    Sponsored-by: Sovereign Tech Fund
    Signed-off-by: Ramiro Polla <[email protected]>
---
 libswscale/jit.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libswscale/jit.c b/libswscale/jit.c
index a98cb5ac2f..dce333d856 100644
--- a/libswscale/jit.c
+++ b/libswscale/jit.c
@@ -65,11 +65,14 @@ void ff_sws_jit_free(void *ptr, size_t size)
 
 void *ff_sws_jit_alloc(size_t size)
 {
-    return VirtualAlloc(NULL, size, MEM_COMMIT, PAGE_EXECUTE_READWRITE);
+    return VirtualAlloc(NULL, size, MEM_COMMIT, PAGE_READWRITE);
 }
 
 int ff_sws_jit_protect(void *ptr, size_t size)
 {
+    DWORD old_protect;
+    if (!VirtualProtect(ptr, size, PAGE_EXECUTE_READ, &old_protect))
+        return AVERROR(EINVAL);
     return 0;
 }
 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to