From 939040a1a519dc96acf009532bb618746d641b55 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Mon, 28 Jul 2025 20:33:31 +0300 Subject: [PATCH] Fix possible buffer underrun. --- specialmonitors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specialmonitors.cpp b/specialmonitors.cpp index 330af339..8f204667 100755 --- a/specialmonitors.cpp +++ b/specialmonitors.cpp @@ -3459,7 +3459,7 @@ static bool opalvision(struct vidbuffer *src, struct vidbuffer *dst, bool double } // blank left and right edge - for (x = 0; x < (xoffset + 2); x++) { + for (x = 1; x < (xoffset + 2); x++) { uae_u8 *d = dstline + ((x << 1) >> hdbl_shift) * dst->pixbytes; uae_u8 *d2 = d + dst->rowbytes; PUT_PRGB(d, d2, dst, 0, 0, 0, 0, doublelines, true); -- 2.47.3