From 18d1425127e5712dda888bb280d5d1a038a45c7f Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Tue, 3 Dec 2013 11:16:16 +0100 Subject: locale: don't crash if locale-archive contains all zeros In case of power failure followed by filesystem issues locale-archive can end-up containing all zeros. In that case all calls to setlocale() generate a SIGFPE. This renders a system with a default non-C locale unbootable. Avoid this by ignoring the locale instead of generating a SIGFPE. --- ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 182051a727..aec3cb2651 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-12-03 Aurelien Jarno + + * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid + division by 0. + 2013-12-03 Siddhesh Poyarekar [BZ #16195] -- cgit 1.4.1