SHA256
1
0
forked from pool/coreutils

- Fix memory handling error with case insensitive sort using UTF-8

(boo#928749):
  * coreutils-i18n.patch: Allocate more memory as the upper form of
    some multi-byte characters may be 1 byte wider.

OBS-URL: https://build.opensuse.org/package/show/Base:System/coreutils?expand=0&rev=255
This commit is contained in:
Bernhard Voelker 2015-05-12 09:12:54 +00:00 committed by Git OBS Bridge
parent 060558900d
commit d20c1f8965
3 changed files with 18 additions and 2 deletions

View File

@ -3261,8 +3261,8 @@ Index: src/sort.c
+
+ if (ignore || translate)
+ {
+ char *copy_a = (char *) xmalloc (lena + 1 + lenb + 1);
+ char *copy_b = copy_a + lena + 1;
+ char *copy_a = (char *) xmalloc((lena + lenb) * MB_CUR_MAX + 2);
+ char *copy_b = copy_a + (lena * MB_CUR_MAX) + 1;
+ size_t new_len_a, new_len_b;
+ size_t i, j;
+

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue May 12 08:56:13 UTC 2015 - mail@bernhard-voelker.de
- Fix memory handling error with case insensitive sort using UTF-8
(boo#928749):
* coreutils-i18n.patch: Allocate more memory as the upper form of
some multi-byte characters may be 1 byte wider.
-------------------------------------------------------------------
Tue Apr 7 18:18:31 UTC 2015 - crrodriguez@opensuse.org

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue May 12 08:56:13 UTC 2015 - mail@bernhard-voelker.de
- Fix memory handling error with case insensitive sort using UTF-8
(boo#928749):
* coreutils-i18n.patch: Allocate more memory as the upper form of
some multi-byte characters may be 1 byte wider.
-------------------------------------------------------------------
Tue Apr 7 18:18:31 UTC 2015 - crrodriguez@opensuse.org