diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2012-12-30 15:07:12 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2012-12-30 15:07:12 +0000 |
commit | 9d899403753c0f5886a55e6cbcb2b1b855b7f637 (patch) | |
tree | 01b3996dac2c5cbbb128ce6afd2c91a9d55c5c2f /dev-libs/fribidi/files | |
parent | Stable for alpha, wrt bug #440682 (diff) | |
download | gentoo-2-9d899403753c0f5886a55e6cbcb2b1b855b7f637.tar.gz gentoo-2-9d899403753c0f5886a55e6cbcb2b1b855b7f637.tar.bz2 gentoo-2-9d899403753c0f5886a55e6cbcb2b1b855b7f637.zip |
Import upstream patch for security #449310
(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
Diffstat (limited to 'dev-libs/fribidi/files')
-rw-r--r-- | dev-libs/fribidi/files/fribidi-0.19.5-signedwarning.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-libs/fribidi/files/fribidi-0.19.5-signedwarning.patch b/dev-libs/fribidi/files/fribidi-0.19.5-signedwarning.patch new file mode 100644 index 000000000000..2619bf375510 --- /dev/null +++ b/dev-libs/fribidi/files/fribidi-0.19.5-signedwarning.patch @@ -0,0 +1,22 @@ +From 78dc3af68ed0e1aafe54c176b28dadee66eb306c Mon Sep 17 00:00:00 2001 +From: Behdad Esfahbod <behdad@behdad.org> +Date: Thu, 06 Dec 2012 17:17:53 +0000 +Subject: Fix theoretically possible overflow + +https://bugzilla.redhat.com/show_bug.cgi?id=884000 +--- +diff --git a/bin/fribidi-main.c b/bin/fribidi-main.c +index ac9e2ff..dd27f0d 100644 +--- a/bin/fribidi-main.c ++++ b/bin/fribidi-main.c +@@ -519,7 +519,7 @@ main ( + idx++; + } + #endif /* !FRIBIDI_MAIN_USE_ICONV_H */ +- if (wid < 0 && idx > st + 1) ++ if (wid < 0 && idx - st > 1) + idx--; + inlen = idx - st; + +-- +cgit v0.9.0.2-2-gbebe |