From: | "Samuli Suominen (ssuominen)" <ssuominen@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-libs/fribidi/files: fribidi-0.19.5-signedwarning.patch |
Date: | Sun, 30 Dec 2012 15:07:22 |
Message-Id: | 20121230150712.6F1C82171E@flycatcher.gentoo.org |
1 | ssuominen 12/12/30 15:07:12 |
2 | |
3 | Added: fribidi-0.19.5-signedwarning.patch |
4 | Log: |
5 | Import upstream patch for security #449310 |
6 | |
7 | (Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 4868F14D) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-libs/fribidi/files/fribidi-0.19.5-signedwarning.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/fribidi/files/fribidi-0.19.5-signedwarning.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/fribidi/files/fribidi-0.19.5-signedwarning.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: fribidi-0.19.5-signedwarning.patch |
16 | =================================================================== |
17 | From 78dc3af68ed0e1aafe54c176b28dadee66eb306c Mon Sep 17 00:00:00 2001 |
18 | From: Behdad Esfahbod <behdad@××××××.org> |
19 | Date: Thu, 06 Dec 2012 17:17:53 +0000 |
20 | Subject: Fix theoretically possible overflow |
21 | |
22 | https://bugzilla.redhat.com/show_bug.cgi?id=884000 |
23 | --- |
24 | diff --git a/bin/fribidi-main.c b/bin/fribidi-main.c |
25 | index ac9e2ff..dd27f0d 100644 |
26 | --- a/bin/fribidi-main.c |
27 | +++ b/bin/fribidi-main.c |
28 | @@ -519,7 +519,7 @@ main ( |
29 | idx++; |
30 | } |
31 | #endif /* !FRIBIDI_MAIN_USE_ICONV_H */ |
32 | - if (wid < 0 && idx > st + 1) |
33 | + if (wid < 0 && idx - st > 1) |
34 | idx--; |
35 | inlen = idx - st; |
36 | |
37 | -- |
38 | cgit v0.9.0.2-2-gbebe |