diff --git a/coreutils-i18n.patch b/coreutils-i18n.patch index f280ede..153c340 100644 --- a/coreutils-i18n.patch +++ b/coreutils-i18n.patch @@ -433,7 +433,7 @@ diff -urN coreutils-6.12-orig/tests/Makefile.am coreutils-6.12/tests/Makefile.am + + memset (&state, 0, sizeof (mbstate_t)); + -+ if (ptr == lim) ++ if (ptr >= lim) + return; + + if (tab != NULL) @@ -464,7 +464,7 @@ diff -urN coreutils-6.12-orig/tests/Makefile.am coreutils-6.12/tests/Makefile.am + } + } + -+ if (sep == lim) ++ if (sep >= lim) + break; + + extract_field (line, ptr, sep - ptr); @@ -505,7 +505,7 @@ diff -urN coreutils-6.12-orig/tests/Makefile.am coreutils-6.12/tests/Makefile.am + mblength = (mblength < 1) ? 1 : mblength; + + sep = ptr + mblength; -+ while (sep != lim) ++ while (sep < lim) + { + state_bak = state; + mblength = mbrtowc (&wc, sep, lim - sep + 1, &state); @@ -524,7 +524,7 @@ diff -urN coreutils-6.12-orig/tests/Makefile.am coreutils-6.12/tests/Makefile.am + } + + extract_field (line, ptr, sep - ptr); -+ if (sep == lim) ++ if (sep >= lim) + return; + + state_bak = state; @@ -538,7 +538,7 @@ diff -urN coreutils-6.12-orig/tests/Makefile.am coreutils-6.12/tests/Makefile.am + mblength = (mblength < 1) ? 1 : mblength; + + ptr = sep + mblength; -+ while (ptr != lim) ++ while (ptr < lim) + { + state_bak = state; + mblength = mbrtowc (&wc, ptr, lim - ptr + 1, &state); @@ -556,7 +556,7 @@ diff -urN coreutils-6.12-orig/tests/Makefile.am coreutils-6.12/tests/Makefile.am + ptr += mblength; + } + } -+ while (ptr != lim); ++ while (ptr < lim); + } + + extract_field (line, ptr, lim - ptr); diff --git a/coreutils.spec b/coreutils.spec index ae1d32b..d3a1908 100644 --- a/coreutils.spec +++ b/coreutils.spec @@ -1,7 +1,7 @@ Summary: A set of basic GNU tools commonly used in shell scripts Name: coreutils Version: 7.2 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv3+ Group: System Environment/Base Url: http://www.gnu.org/software/coreutils/ @@ -314,6 +314,10 @@ fi /sbin/runuser %changelog +* Thu Apr 23 2009 Ondrej Vasik 7.2-3 +- fix segfaults in join (i18n patch) when using multibyte + locales(#497368) + * Fri Apr 17 2009 Ondrej Vasik 7.2-2 - make mv xattr support failures silent (as is done for cp -a) - #496142