summaryrefslogtreecommitdiffstats
path: root/patches/source/xorg-server/patch/xorg-server/xorg-server.CVE-2013-1940.diff
blob: 3d38e6fdfce8371a1c7f9598fbd63af708fd927b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- ./hw/xfree86/os-support/shared/posix_tty.c.orig	2012-05-17 12:09:03.000000000 -0500
+++ ./hw/xfree86/os-support/shared/posix_tty.c	2013-04-18 17:50:29.790140871 -0500
@@ -421,7 +421,8 @@
 {
     fd_set fds;
     struct timeval timeout;
-    char c[4];
+    /* this needs to be big enough to flush an evdev event. */
+    char c[256];
 
     DebugF("FlushingSerial\n");
     if (tcflush(fd, TCIFLUSH) == 0)