From f227313aae602dec3a6c8c11123807028c9062d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Sun, 25 Oct 2015 16:03:24 +0200 Subject: main/at-spi2-core: fix buffer overrun detected by fortify --- main/at-spi2-core/fix-buffer-overrun.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 main/at-spi2-core/fix-buffer-overrun.patch (limited to 'main/at-spi2-core/fix-buffer-overrun.patch') diff --git a/main/at-spi2-core/fix-buffer-overrun.patch b/main/at-spi2-core/fix-buffer-overrun.patch new file mode 100644 index 0000000000..9c434eace7 --- /dev/null +++ b/main/at-spi2-core/fix-buffer-overrun.patch @@ -0,0 +1,12 @@ +diff -ru at-spi2-core-2.16.0.orig/bus/at-spi-bus-launcher.c at-spi2-core-2.16.0/bus/at-spi-bus-launcher.c +--- at-spi2-core-2.16.0.orig/bus/at-spi-bus-launcher.c 2015-03-05 06:04:20.000000000 +0200 ++++ at-spi2-core-2.16.0/bus/at-spi-bus-launcher.c 2015-10-25 16:00:32.158127066 +0200 +@@ -104,7 +104,7 @@ + { + ssize_t bytes_read; + +- while (max_bytes > 1 && (bytes_read = read (fd, buf, MAX (4096, max_bytes - 1)))) ++ while (max_bytes > 1 && (bytes_read = read (fd, buf, max_bytes - 1))) + { + if (bytes_read < 0) + return FALSE; -- cgit v1.2.3