]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix possible buffer underrun.
authorToni Wilen <twilen@winuae.net>
Mon, 28 Jul 2025 17:33:31 +0000 (20:33 +0300)
committerToni Wilen <twilen@winuae.net>
Mon, 28 Jul 2025 17:33:31 +0000 (20:33 +0300)
specialmonitors.cpp

index 330af3391681cd996d4b265cd7d4f16cb98a7b9f..8f2046679c99339940f288cd6258aad41dead25d 100755 (executable)
@@ -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);