From a50a0e348542bf32fb4239ee05a485772837f2f3 Mon Sep 17 00:00:00 2001 From: qarmin Date: Tue, 28 Apr 2020 22:05:02 +0200 Subject: [PATCH] glxcmds: Fix possible out of bounds --- glx/glxcmds.c | 1 - 1 file changed, 1 deletion(-) diff --git a/glx/glxcmds.c b/glx/glxcmds.c index 37576b6ef..8bf180378 100644 --- a/glx/glxcmds.c +++ b/glx/glxcmds.c @@ -985,7 +985,6 @@ __glXDisp_GetVisualConfigs(__GLXclientState * cl, GLbyte * pc) /* Pad with zeroes, so that attributes count is constant. */ while (p < GLX_VIS_CONFIG_TOTAL) { buf[p++] = 0; - buf[p++] = 0; } assert(p == GLX_VIS_CONFIG_TOTAL);