rpms/icu/devel icu.icu7039.badextract.patch,1.1,1.2
Caolan McNamara
caolanm at fedoraproject.org
Tue Jul 28 16:32:49 UTC 2009
Author: caolanm
Update of /cvs/pkgs/rpms/icu/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv492
Modified Files:
icu.icu7039.badextract.patch
Log Message:
icu#7039 fix broken use of extract to get tests working
icu.icu7039.badextract.patch:
common/unicode/unistr.h | 2 +-
test/intltest/dadrcal.cpp | 8 ++++----
test/intltest/dadrcoll.cpp | 2 +-
test/intltest/dadrfmt.cpp | 4 ++--
test/intltest/loctest.cpp | 2 +-
5 files changed, 9 insertions(+), 9 deletions(-)
Index: icu.icu7039.badextract.patch
===================================================================
RCS file: /cvs/pkgs/rpms/icu/devel/icu.icu7039.badextract.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- icu.icu7039.badextract.patch 28 Jul 2009 15:58:09 -0000 1.1
+++ icu.icu7039.badextract.patch 28 Jul 2009 16:32:49 -0000 1.2
@@ -6,7 +6,7 @@ diff -ru icu.orig/source/common/unicode/
{
// This dstSize value will be checked explicitly
- return extract(start, _length, dst, dst!=0 ? 0xffffffff : 0, codepage);
-+ return extract(start, _length, dst, dst!=0 ? ((dst >= ((size_t)-1) - UINT32_MAX) ? (((char*)UINT32_MAX) - dst) : UINT32_MAX) : 0, codepage);
++ return extract(start, _length, dst, dst!=0 ? (((size_t)dst >= ((size_t)-1) - UINT32_MAX) ? (((char*)UINT32_MAX) - dst) : UINT32_MAX) : 0, codepage);
}
#endif
More information about the fedora-extras-commits
mailing list