mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-23 09:22:59 +02:00
- Update main file from 5.1 to 5.1.8 (includes patches 1 to 8)
- Remove patches 1 to 4
- Changelog - Patches 1 to 4 from the previous IPFire version together with patches 5 to
8 are now included into bash-5.1.8 followed by application of patches 9 to 12
Patch 12
There is a possible race condition that arises when a child process receives
a signal trapped by the parent before it can reset the signal dispositions.
The child process is not supposed to trap the signal in this circumstance.
Patch 11
When reading a compound assignment, and running it through the parser to
split it into words, we need to save and restore any alias we're currently
expanding.
Patch 10
If `wait -n' is interrupted by a trapped signal other than SIGINT, it does
not completely clean up state, and that can prevent subsequent calls to
`wait -n' from working correctly.
Patch 9
The bash malloc implementation of malloc_usable_size() does not follow the
specification. This can cause library functions that use it to overwrite
memory bounds checking.
Patch 8
Process substitution FIFOs opened by child processes as targets of redirections
were not removed appropriately, leaving remnants in the file system.
Patch 7
The code to check readline versions in an inputrc file had the sense of the
comparisons reversed.
Patch 6
Make sure child processes forked to run command substitutions are in the
proper process group.
Patch 5
Fix two memory leaks when assigning arrays using compound assignment syntax.
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
60 lines
1.7 KiB
Plaintext
60 lines
1.7 KiB
Plaintext
BASH PATCH REPORT
|
|
=================
|
|
|
|
Bash-Release: 5.1
|
|
Patch-ID: bash51-010
|
|
|
|
Bug-Reported-by: Jonas Alfredsson <jonas.alfredsson@protonmail.com>
|
|
Bug-Reference-ID: <LjAfZaEuZncr2RaqhSSfcaiXdkuK6kdEYxshP3LApXbgMVQzggMGyWHO9knVkXicW2fP-ibsipJ_GZ-YaJRm96Rsozf6PgFmPsljRCtflls=@protonmail.com>
|
|
Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2021-05/msg00059.html
|
|
|
|
Bug-Description:
|
|
|
|
If `wait -n' is interrupted by a trapped signal other than SIGINT, it does
|
|
not completely clean up state, and that can prevent subsequent calls to
|
|
`wait -n' from working correctly.
|
|
|
|
Patch (apply with `patch -p0'):
|
|
|
|
*** ../bash-5.1-patched/builtins/wait.def 2020-12-16 17:13:12.000000000 -0500
|
|
--- builtins/wait.def 2021-11-17 10:25:15.000000000 -0500
|
|
***************
|
|
*** 112,116 ****
|
|
WORD_LIST *list;
|
|
{
|
|
! int status, code, opt, nflag, wflags;
|
|
char *vname;
|
|
SHELL_VAR *pidvar;
|
|
--- 112,117 ----
|
|
WORD_LIST *list;
|
|
{
|
|
! int status, code, opt, nflag;
|
|
! volatile int wflags;
|
|
char *vname;
|
|
SHELL_VAR *pidvar;
|
|
***************
|
|
*** 181,184 ****
|
|
--- 188,193 ----
|
|
status = 128 + wait_signal_received;
|
|
wait_sigint_cleanup ();
|
|
+ if (wflags & JWAIT_WAITING)
|
|
+ unset_waitlist ();
|
|
WAIT_RETURN (status);
|
|
}
|
|
|
|
*** ../bash-5.1/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
|
|
--- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
|
|
***************
|
|
*** 26,30 ****
|
|
looks for to find the patch level (for the sccs version string). */
|
|
|
|
! #define PATCHLEVEL 9
|
|
|
|
#endif /* _PATCHLEVEL_H_ */
|
|
--- 26,30 ----
|
|
looks for to find the patch level (for the sccs version string). */
|
|
|
|
! #define PATCHLEVEL 10
|
|
|
|
#endif /* _PATCHLEVEL_H_ */
|