]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/blame - src/patches/bash/bash51-014
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-2.x
[people/mfischer/ipfire-2.x.git] / src / patches / bash / bash51-014
CommitLineData
d675dade
AB
1 BASH PATCH REPORT
2 =================
3
4Bash-Release: 5.1
5Patch-ID: bash51-014
6
7Bug-Reported-by: platon7pronko@gmail.com
8Bug-Reference-ID:
9Bug-Reference-URL: https://savannah.gnu.org/patch/?10035
10
11Bug-Description:
12
13Bash may produce corrupted input if a multibyte character spans a 512-byte
14boundary while reading the output of a command substitution.
15
16Patch (apply with `patch -p0'):
17
18*** ../bash-20210217/subst.c 2021-02-03 10:32:08.000000000 -0500
19--- subst.c 2021-03-01 16:47:52.000000000 -0500
20***************
21*** 6243,6247 ****
22 /* punt on the hard case for now */
23 memset (&ps, '\0', sizeof (mbstate_t));
24! mblen = mbrtowc (&wc, bufp-1, bufn+1, &ps);
25 if (MB_INVALIDCH (mblen) || mblen == 0 || mblen == 1)
26 istring[istring_index++] = c;
27--- 6243,6247 ----
28 /* punt on the hard case for now */
29 memset (&ps, '\0', sizeof (mbstate_t));
30! mblen = mbrtowc (&wc, bufp-1, bufn, &ps);
31 if (MB_INVALIDCH (mblen) || mblen == 0 || mblen == 1)
32 istring[istring_index++] = c;
33
34*** ../bash-5.1/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
35--- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
36***************
37*** 26,30 ****
38 looks for to find the patch level (for the sccs version string). */
39
40! #define PATCHLEVEL 13
41
42 #endif /* _PATCHLEVEL_H_ */
43--- 26,30 ----
44 looks for to find the patch level (for the sccs version string). */
45
46! #define PATCHLEVEL 14
47
48 #endif /* _PATCHLEVEL_H_ */