From 5d8519897dd1d67618ca000bd930392fe14c3723 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 22 Nov 2024 19:57:46 +1000 Subject: [PATCH] Image: Fix uninitialized read without SIMD --- src/util/image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/image.cpp b/src/util/image.cpp index 9541d3bd7..5d31f607d 100644 --- a/src/util/image.cpp +++ b/src/util/image.cpp @@ -252,7 +252,7 @@ void RGBA8Image::SwapBGRAToRGBA(void* pixels, u32 width, u32 height, u32 pitch) } #endif - for (; x < width; x++) + for (x = 0; x < width; x++) { u32 pixel; std::memcpy(&pixel, row_pixels_ptr, sizeof(pixel));