Control: tags 1021062 + patch
Control: tags 1021062 + pending

Dear maintainer,

I've prepared an NMU for readline (versioned as 8.2-1.1) and uploaded
it to DELAYED/15. Please feel free to tell me if I should cancel it.

cu
Adrian
diff -Nru readline-8.2/debian/changelog readline-8.2/debian/changelog
--- readline-8.2/debian/changelog	2022-09-28 17:24:54.000000000 +0300
+++ readline-8.2/debian/changelog	2022-10-15 14:47:17.000000000 +0300
@@ -1,3 +1,10 @@
+readline (8.2-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add upstream fix for crash with invalid locale. (Closes: #1021062)
+
+ -- Adrian Bunk <b...@debian.org>  Sat, 15 Oct 2022 14:47:17 +0300
+
 readline (8.2-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru readline-8.2/debian/patches/0001-Readline-8.2-patch-1-fix-crash-when-readline-is-star.patch readline-8.2/debian/patches/0001-Readline-8.2-patch-1-fix-crash-when-readline-is-star.patch
--- readline-8.2/debian/patches/0001-Readline-8.2-patch-1-fix-crash-when-readline-is-star.patch	1970-01-01 02:00:00.000000000 +0200
+++ readline-8.2/debian/patches/0001-Readline-8.2-patch-1-fix-crash-when-readline-is-star.patch	2022-10-15 14:47:17.000000000 +0300
@@ -0,0 +1,20 @@
+From 7274faabe97ce53d6b464272d7e6ab6c1392837b Mon Sep 17 00:00:00 2001
+From: Chet Ramey <chet.ra...@case.edu>
+Date: Wed, 5 Oct 2022 10:41:16 -0400
+Subject: Readline-8.2 patch 1: fix crash when readline is started with an
+ invalid locale specification
+
+--- a/nls.c
++++ b/nls.c
+@@ -141,6 +141,10 @@ _rl_init_locale (void)
+   if (lspec == 0)
+     lspec = "";
+   ret = setlocale (LC_CTYPE, lspec);	/* ok, since it does not change locale */
++  if (ret == 0 || *ret == 0)
++    ret = setlocale (LC_CTYPE, (char *)NULL);
++  if (ret == 0 || *ret == 0)
++    ret = RL_DEFAULT_LOCALE;
+ #else
+   ret = (lspec == 0 || *lspec == 0) ? RL_DEFAULT_LOCALE : lspec;
+ #endif
+
diff -Nru readline-8.2/debian/patches/series readline-8.2/debian/patches/series
--- readline-8.2/debian/patches/series	2022-01-06 18:26:54.000000000 +0200
+++ readline-8.2/debian/patches/series	2022-10-15 14:47:16.000000000 +0300
@@ -10,3 +10,4 @@
 fix-wformat-security.diff
 configure-tinfo.diff
 rlfe-signal-rvt.diff
+0001-Readline-8.2-patch-1-fix-crash-when-readline-is-star.patch

Reply via email to