diff options
author | Timo Teräs <timo.teras@iki.fi> | 2015-10-25 16:03:24 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2015-10-25 16:04:08 +0200 |
commit | f227313aae602dec3a6c8c11123807028c9062d6 (patch) | |
tree | 8bfc2bff259287b0a92e864bb7b196666ab5c36f /main/at-spi2-core/fix-buffer-overrun.patch | |
parent | ef0283a0d7ea693662fd2ec83d62c6e4ca5f2ed3 (diff) | |
download | aports-f227313aae602dec3a6c8c11123807028c9062d6.tar.bz2 aports-f227313aae602dec3a6c8c11123807028c9062d6.tar.xz |
main/at-spi2-core: fix buffer overrun
detected by fortify
Diffstat (limited to 'main/at-spi2-core/fix-buffer-overrun.patch')
-rw-r--r-- | main/at-spi2-core/fix-buffer-overrun.patch | 12 |
1 files changed, 12 insertions, 0 deletions
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; |