Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/libXext/dist/src Limit the number of visuals ...



details:   https://anonhg.NetBSD.org/xsrc/rev/258c376515d2
branches:  trunk
changeset: 10553:258c376515d2
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Sep 07 15:20:53 2020 +0000

description:
Limit the number of visuals to 64K

diffstat:

 external/mit/libXext/dist/src/XEVI.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 3b76b6a317bb -r 258c376515d2 external/mit/libXext/dist/src/XEVI.c
--- a/external/mit/libXext/dist/src/XEVI.c      Sun Aug 30 04:53:28 2020 +0000
+++ b/external/mit/libXext/dist/src/XEVI.c      Mon Sep 07 15:20:53 2020 +0000
@@ -133,6 +133,8 @@
                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++) {



Home | Main Index | Thread Index | Old Index