summaryrefslogtreecommitdiffstats
path: root/patches/source/xorg-server/patch/xorg-server/xorg-server.CVE-2013-1940.diff
blob: cd26673f072a86d4a00f2d5bced74506e53353b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- xorg-server-1.9.5/hw/xfree86/os-support/shared/posix_tty.c.orig	2013-04-18 17:58:55.000000000 -0500
+++ xorg-server-1.9.5/hw/xfree86/os-support/shared/posix_tty.c	2013-04-18 18:00:20.000000000 -0500
@@ -460,7 +460,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)