summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMart Raudsepp <leio@gentoo.org>2018-08-31 01:34:31 +0300
committerMart Raudsepp <leio@gentoo.org>2018-08-31 01:53:45 +0300
commit7439891c294714fa8fa9598defae766ece517c2b (patch)
treeb5e3609af95ceedddaaf8745409709900e7e4784 /app-accessibility/at-spi2-core/files
parentdev-util/re2c: bump up to 1.1.1 (diff)
downloadgentoo-7439891c294714fa8fa9598defae766ece517c2b.tar.gz
gentoo-7439891c294714fa8fa9598defae766ece517c2b.tar.bz2
gentoo-7439891c294714fa8fa9598defae766ece517c2b.zip
app-accessibility/at-spi2-core: bump to 2.26.2
Package-Manager: Portage-2.3.48, Repoman-2.3.10
Diffstat (limited to 'app-accessibility/at-spi2-core/files')
-rw-r--r--app-accessibility/at-spi2-core/files/2.26.2-fix-inverted-logic.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/app-accessibility/at-spi2-core/files/2.26.2-fix-inverted-logic.patch b/app-accessibility/at-spi2-core/files/2.26.2-fix-inverted-logic.patch
new file mode 100644
index 000000000000..7aa10f8bfc2b
--- /dev/null
+++ b/app-accessibility/at-spi2-core/files/2.26.2-fix-inverted-logic.patch
@@ -0,0 +1,28 @@
+From c2e87fe00b596dba20c9d57d406ab8faa744b15a Mon Sep 17 00:00:00 2001
+From: Maya Rashish <maya@NetBSD.org>
+Date: Sat, 2 Dec 2017 13:24:29 +0200
+Subject: [PATCH] Fix inverted logic.
+
+Don't write more into a buffer than it can hold.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=791124
+---
+ bus/at-spi-bus-launcher.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/bus/at-spi-bus-launcher.c b/bus/at-spi-bus-launcher.c
+index 261353f..eb2b8e3 100644
+--- a/bus/at-spi-bus-launcher.c
++++ b/bus/at-spi-bus-launcher.c
+@@ -244,7 +244,7 @@ unix_read_all_fd_to_string (int fd,
+ {
+ 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, MIN (4096, max_bytes - 1))))
+ {
+ if (bytes_read < 0)
+ return FALSE;
+--
+2.18.0
+