Resolves: rhbz#884000 signed warning (thanks mfabian)

This commit is contained in:
Caolán McNamara 2012-12-10 11:46:58 +00:00
parent d0414c304a
commit 089716e608
2 changed files with 17 additions and 1 deletions

View File

@ -1,11 +1,12 @@
Summary: Library implementing the Unicode Bidirectional Algorithm
Name: fribidi
Version: 0.19.4
Release: 1%{?dist}
Release: 2%{?dist}
URL: http://fribidi.org
Source: http://fribidi.org/download/%{name}-%{version}.tar.bz2
License: LGPLv2+ and UCD
Group: System Environment/Libraries
Patch0: signedwarning.patch
%description
A library to handle bidirectional scripts (for example Hebrew, Arabic),
@ -23,6 +24,7 @@ FriBidi.
%prep
%setup -q
%patch0 -p1 -b .signedwarnings
%build
%if 0%{?el5}
@ -61,6 +63,9 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
%{_mandir}/man3/%{name}_*.gz
%changelog
* Mon Dec 10 2012 Caolán McNamara <caolanm@redhat.com> - 0.19.4-2
- Resolves: rhbz#884000 signed warning (thanks mfabian)
* Tue Nov 27 2012 Caolán McNamara <caolanm@redhat.com> - 0.19.4-1
- Resolves: rhbz#880490 bump to latest version

11
signedwarning.patch Normal file
View File

@ -0,0 +1,11 @@
--- fribidi-0.19.4/bin/fribidi-main.c 2012-08-25 20:56:20.000000000 +0200
+++ fribidi-0.19.4/bin/fribidi-main.c 2012-12-06 16:10:38.936894816 +0100
@@ -519,7 +519,7 @@
idx++;
}
#endif /* !FRIBIDI_MAIN_USE_ICONV_H */
- if (wid < 0 && idx > st + 1)
+ if (wid < 0 && idx - st > 1)
idx--;
inlen = idx - st;