From b17411e84995d09d5b5339f12fe6408086bdd688 Mon Sep 17 00:00:00 2001 From: Krejzi Date: Tue, 22 Apr 2014 14:58:15 +0000 Subject: [PATCH] Fix segfault in shuf program from Coreutils. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10545 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 5 +++++ chapter01/whatsnew.xml | 3 +++ chapter03/patches.xml | 8 ++++++++ chapter06/coreutils.xml | 8 ++++---- patches.ent | 4 ++++ 5 files changed, 24 insertions(+), 4 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 90dc2c09f..e426b6f58 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -38,6 +38,11 @@ 2014-03-22 + + [krejzi] - Fix a segfault in shuf program from + Coreutils. Fixes + #3550. + [krejzi] - Fix a segfault in Acl package. Fixes #3549. diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index c23042f97..ac422b5a6 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -238,6 +238,9 @@ &bc-memory-leak-patch; + + &coreutils-shuf-segfault-patch; + dbus-&dbus-version; diff --git a/chapter03/patches.xml b/chapter03/patches.xml index 6c5e5230d..136863f7b 100644 --- a/chapter03/patches.xml +++ b/chapter03/patches.xml @@ -50,6 +50,14 @@ + + Coreutils shuf Segmentation Fault Fix Patch - &coreutils-shuf-segfault-patch-size;: + + Download: + MD5 sum: &coreutils-shuf-segfault-patch-md5; + + + Glibc FHS Patch - &glibc-fhs-patch-size;: diff --git a/chapter06/coreutils.xml b/chapter06/coreutils.xml index 9d9acf163..1f2fba108 100644 --- a/chapter06/coreutils.xml +++ b/chapter06/coreutils.xml @@ -40,11 +40,11 @@ Installation of Coreutils - + First, fix a segfault in shuf program: + +patch -Np1 -i ../&coreutils-shuf-segfault-patch; + POSIX requires that programs from Coreutils recognize character boundaries correctly even in multibyte locales. The following patch fixes this non-compliance and other internationalization-related bugs: diff --git a/patches.ent b/patches.ent index 5e120dfb4..a6fe451a9 100644 --- a/patches.ent +++ b/patches.ent @@ -18,6 +18,10 @@ + + + +