]>
Commit | Line | Data |
---|---|---|
5be71d2a AB |
1 | BASH PATCH REPORT |
2 | ================= | |
3 | ||
4 | Bash-Release: 5.2 | |
5 | Patch-ID: bash52-002 | |
6 | ||
7 | Bug-Reported-by: Kan-Ru Chen <koster@debian.org> | |
8 | Bug-Reference-ID: | |
9 | Bug-Reference-URL: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021109 | |
10 | ||
11 | Bug-Description: | |
12 | ||
13 | Starting bash with an invalid locale specification for LC_ALL/LANG/LC_CTYPE | |
14 | can cause the shell to crash. | |
15 | ||
16 | Patch (apply with `patch -p0'): | |
17 | ||
18 | *** ../bash-5.2-patched/lib/readline/nls.c 2022-08-15 09:38:51.000000000 -0400 | |
19 | --- lib/readline/nls.c 2022-10-05 09:23:22.000000000 -0400 | |
20 | *************** | |
21 | *** 142,145 **** | |
22 | --- 142,149 ---- | |
23 | lspec = ""; | |
24 | ret = setlocale (LC_CTYPE, lspec); /* ok, since it does not change locale */ | |
25 | + if (ret == 0 || *ret == 0) | |
26 | + ret = setlocale (LC_CTYPE, (char *)NULL); | |
27 | + if (ret == 0 || *ret == 0) | |
28 | + ret = RL_DEFAULT_LOCALE; | |
29 | #else | |
30 | ret = (lspec == 0 || *lspec == 0) ? RL_DEFAULT_LOCALE : lspec; | |
31 | ||
32 | *** ../bash-5.2/patchlevel.h 2020-06-22 14:51:03.000000000 -0400 | |
33 | --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400 | |
34 | *************** | |
35 | *** 26,30 **** | |
36 | looks for to find the patch level (for the sccs version string). */ | |
37 | ||
38 | ! #define PATCHLEVEL 1 | |
39 | ||
40 | #endif /* _PATCHLEVEL_H_ */ | |
41 | --- 26,30 ---- | |
42 | looks for to find the patch level (for the sccs version string). */ | |
43 | ||
44 | ! #define PATCHLEVEL 2 | |
45 | ||
46 | #endif /* _PATCHLEVEL_H_ */ |