SDL: Fixed bug #7614: Segmentation Fault in SDL_BlitSurface (9db80)

From 9db80adfba762e21458f886f5b24320af3677d60 Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Mon, 11 Dec 2023 14:12:42 +0100
Subject: [PATCH] Fixed bug #7614: Segmentation Fault in SDL_BlitSurface

(cherry picked from commit e6c8872fdc8d9b8aa5e208c9b55c6f230674a13d)
---
 src/video/SDL_surface.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/video/SDL_surface.c b/src/video/SDL_surface.c
index 7aa032385776..6854f68b50f8 100644
--- a/src/video/SDL_surface.c
+++ b/src/video/SDL_surface.c
@@ -702,7 +702,8 @@ int SDL_UpperBlit(SDL_Surface *src, const SDL_Rect *srcrect,
                   SDL_Surface *dst, SDL_Rect *dstrect)
 {
     SDL_Rect fulldst;
-    int srcx, srcy, w, h;
+    int srcx, srcy;
+    Sint64 w, h;
 
     /* Make sure the surfaces aren't locked */
     if (!src || !dst) {