Module Name:    xsrc
Committed By:   christos
Date:           Mon Sep  7 15:20:53 UTC 2020

Modified Files:
        xsrc/external/mit/libXext/dist/src: XEVI.c

Log Message:
Limit the number of visuals to 64K


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.5 -r1.2 xsrc/external/mit/libXext/dist/src/XEVI.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/libXext/dist/src/XEVI.c
diff -u xsrc/external/mit/libXext/dist/src/XEVI.c:1.1.1.5 xsrc/external/mit/libXext/dist/src/XEVI.c:1.2
--- xsrc/external/mit/libXext/dist/src/XEVI.c:1.1.1.5	Tue Jul 21 22:17:42 2015
+++ xsrc/external/mit/libXext/dist/src/XEVI.c	Mon Sep  7 11:20:53 2020
@@ -133,6 +133,8 @@ Status XeviGetVisualInfo(
 	        temp_visual[n_visual++] = vinfo[vinfoIndex].visualid;
     }
     else {	/* check if the visual is valid */
+	if (n_visual > 65536)
+		n_visual = 65536;
         for (visualIndex = 0; visualIndex < n_visual; visualIndex++) {
 	    isValid = False;
             for (vinfoIndex = 0; vinfoIndex < sz_info; vinfoIndex++) {

Reply via email to