summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Wu <rob@robwu.nl>2016-02-25 18:05:50 +0100
committerAlan Coopersmith <alan.coopersmith@oracle.com>2016-03-03 18:24:06 -0800
commit0744837f525d8ba103e807af7c44ad2bf5cbd6ca (patch)
treee2bff405318f1c16b607fbc80d2bd54750a74d67
parentefdcbb7634501e1117d422636a0a75d7ea84b16b (diff)
downloadxorg-lib-libXext-0744837f525d8ba103e807af7c44ad2bf5cbd6ca.tar.gz
XSecurityGenerateAuthorization: Allocate enough space in values buffer
https://bugs.freedesktop.org/show_bug.cgi?id=94292 Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Seth Arnold <seth.arnold@canonical.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/XSecurity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XSecurity.c b/src/XSecurity.c
index 73305a3..d0a68d2 100644
--- a/src/XSecurity.c
+++ b/src/XSecurity.c
@@ -217,7 +217,7 @@ XSecurityGenerateAuthorization(
register xSecurityGenerateAuthorizationReq *req;
xSecurityGenerateAuthorizationReply rep;
Xauth *auth_return;
- unsigned long values[3];
+ unsigned long values[4];
unsigned long *value = values;
unsigned int nvalues;