gnuplot: update to 6.0.2
[oi-userland.git] / components / shell / bash / patches / bash52-016.patch
blobe9fbbef17a114b85ebf4a57e844655fef7a0f759
1 BASH PATCH REPORT
2 =================
4 Bash-Release: 5.2
5 Patch-ID: bash52-016
7 Bug-Reported-by: F G <frank.graziano@gmail.com>
8 Bug-Reference-ID: <CAOhYt35M5VctK+xAPu=Gy_UzzGmHedWPJE4q+kL4UHF_6Nb1kA@mail.gmail.com>
9 Bug-Reference-URL:
11 Bug-Description:
13 If an expression in an arithmetic for loop expands to NULL, the shell
14 would crash.
16 Patch (apply with `patch -p0'):
18 *** ../bash-5.2-patched/execute_cmd.c Thu Feb 23 14:15:05 2023
19 --- execute_cmd.c Mon Feb 27 17:53:08 2023
20 ***************
21 *** 3051,3055 ****
22 if (l->next)
23 free (expr);
24 ! new = make_word_list (make_word (temp), (WORD_LIST *)NULL);
25 free (temp);
27 --- 3051,3055 ----
28 if (l->next)
29 free (expr);
30 ! new = make_word_list (make_word (temp ? temp : ""), (WORD_LIST *)NULL);
31 free (temp);
33 *** ../bash-5.2/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
34 --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
35 ***************
36 *** 26,30 ****
37 looks for to find the patch level (for the sccs version string). */
39 ! #define PATCHLEVEL 15
41 #endif /* _PATCHLEVEL_H_ */
42 --- 26,30 ----
43 looks for to find the patch level (for the sccs version string). */
45 ! #define PATCHLEVEL 16
47 #endif /* _PATCHLEVEL_H_ */