File LibVNCServer-CVE-2020-14401.patch of Package LibVNCServer.15607

Index: libvncserver-LibVNCServer-0.9.10/libvncserver/scale.c
===================================================================
--- libvncserver-LibVNCServer-0.9.10.orig/libvncserver/scale.c	2014-10-21 17:57:11.000000000 +0200
+++ libvncserver-LibVNCServer-0.9.10/libvncserver/scale.c	2020-07-08 09:03:00.967250625 +0200
@@ -215,7 +215,7 @@ void rfbScaledScreenUpdateRect(rfbScreen
              default:
                /* fixme: endianess problem? */
                for (z = 0; z < bytesPerPixel; z++)
-                 pixel_value += (srcptr2[z] << (8 * z));
+                 pixel_value += ((unsigned long)srcptr2[z] << (8 * z));
                 break;
               }
               /*