slackware-current/source/a/bash/bash-5.2-patches/bash52-004
Patrick J Volkerding 458c6cc7f8 Tue Nov 8 22:21:43 UTC 2022
a/bash-5.2.009-x86_64-1.txz:  Upgraded.
a/glibc-zoneinfo-2022f-noarch-1.txz:  Upgraded.
a/sed-4.9-x86_64-1.txz:  Upgraded.
ap/mariadb-10.6.11-x86_64-1.txz:  Upgraded.
  This is a bugfix release.
  For more information, see:
    https://mariadb.com/kb/en/mariadb-10-6-11-release-notes
d/ccache-4.7.3-x86_64-1.txz:  Upgraded.
d/meson-0.64.0-x86_64-1.txz:  Upgraded.
d/patchelf-0.17.0-x86_64-1.txz:  Upgraded.
kde/bluedevil-5.26.3-x86_64-1.txz:  Upgraded.
kde/breeze-5.26.3-x86_64-1.txz:  Upgraded.
kde/breeze-grub-5.26.3-x86_64-1.txz:  Upgraded.
kde/breeze-gtk-5.26.3-x86_64-1.txz:  Upgraded.
kde/drkonqi-5.26.3-x86_64-1.txz:  Upgraded.
kde/kactivitymanagerd-5.26.3-x86_64-1.txz:  Upgraded.
kde/kde-cli-tools-5.26.3-x86_64-1.txz:  Upgraded.
kde/kde-gtk-config-5.26.3-x86_64-1.txz:  Upgraded.
kde/kdecoration-5.26.3-x86_64-1.txz:  Upgraded.
kde/kdeplasma-addons-5.26.3-x86_64-1.txz:  Upgraded.
kde/kgamma5-5.26.3-x86_64-1.txz:  Upgraded.
kde/khotkeys-5.26.3-x86_64-1.txz:  Upgraded.
kde/kinfocenter-5.26.3-x86_64-1.txz:  Upgraded.
kde/kmenuedit-5.26.3-x86_64-1.txz:  Upgraded.
kde/kpipewire-5.26.3-x86_64-1.txz:  Upgraded.
kde/kscreen-5.26.3-x86_64-1.txz:  Upgraded.
kde/kscreenlocker-5.26.3-x86_64-1.txz:  Upgraded.
kde/ksshaskpass-5.26.3-x86_64-1.txz:  Upgraded.
kde/ksystemstats-5.26.3-x86_64-1.txz:  Upgraded.
kde/kwallet-pam-5.26.3-x86_64-1.txz:  Upgraded.
kde/kwayland-integration-5.26.3-x86_64-1.txz:  Upgraded.
kde/kwin-5.26.3-x86_64-1.txz:  Upgraded.
kde/kwrited-5.26.3-x86_64-1.txz:  Upgraded.
kde/layer-shell-qt-5.26.3-x86_64-1.txz:  Upgraded.
kde/libkscreen-5.26.3-x86_64-1.txz:  Upgraded.
kde/libksysguard-5.26.3-x86_64-1.txz:  Upgraded.
kde/milou-5.26.3-x86_64-1.txz:  Upgraded.
kde/oxygen-5.26.3-x86_64-1.txz:  Upgraded.
kde/oxygen-sounds-5.26.3-x86_64-1.txz:  Upgraded.
kde/plasma-browser-integration-5.26.3-x86_64-1.txz:  Upgraded.
kde/plasma-desktop-5.26.3-x86_64-1.txz:  Upgraded.
kde/plasma-disks-5.26.3-x86_64-1.txz:  Upgraded.
kde/plasma-firewall-5.26.3-x86_64-1.txz:  Upgraded.
kde/plasma-integration-5.26.3-x86_64-1.txz:  Upgraded.
kde/plasma-nm-5.26.3-x86_64-1.txz:  Upgraded.
kde/plasma-pa-5.26.3-x86_64-1.txz:  Upgraded.
kde/plasma-sdk-5.26.3-x86_64-1.txz:  Upgraded.
kde/plasma-systemmonitor-5.26.3-x86_64-1.txz:  Upgraded.
kde/plasma-vault-5.26.3-x86_64-1.txz:  Upgraded.
kde/plasma-workspace-5.26.3-x86_64-1.txz:  Upgraded.
kde/plasma-workspace-wallpapers-5.26.3-x86_64-1.txz:  Upgraded.
kde/polkit-kde-agent-1-5.26.3-x86_64-1.txz:  Upgraded.
kde/powerdevil-5.26.3-x86_64-1.txz:  Upgraded.
kde/qqc2-breeze-style-5.26.3-x86_64-1.txz:  Upgraded.
kde/sddm-kcm-5.26.3-x86_64-1.txz:  Upgraded.
kde/systemsettings-5.26.3-x86_64-1.txz:  Upgraded.
kde/xdg-desktop-portal-kde-5.26.3-x86_64-1.txz:  Upgraded.
l/Imath-3.1.6-x86_64-1.txz:  Upgraded.
l/imagemagick-7.1.0_52-x86_64-1.txz:  Upgraded.
l/libspectre-0.2.11-x86_64-1.txz:  Upgraded.
n/mutt-2.2.8-x86_64-1.txz:  Upgraded.
x/mesa-22.2.3-x86_64-1.txz:  Upgraded.
x/wayland-protocols-1.28-noarch-1.txz:  Upgraded.
2022-11-09 07:00:18 +01:00

70 lines
2 KiB
Text

BASH PATCH REPORT
=================
Bash-Release: 5.2
Patch-ID: bash52-004
Bug-Reported-by: Antoine <bug-bash@glitchimini.net>
Bug-Reference-ID: <8bd59753-05ff-9b09-2337-2c7f52ded650@glitchimini.net>
Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2022-10/msg00022.html
Bug-Description:
Bash needs to keep better track of nested brace expansions to avoid problems
with quoting and POSIX semantics.
Patch (apply with `patch -p0'):
*** ../bash-5.2-patched/subst.c 2022-10-05 10:22:02.000000000 -0400
--- subst.c 2022-10-06 15:19:08.000000000 -0400
***************
*** 1799,1802 ****
--- 1804,1810 ----
}
+ #define PARAMEXPNEST_MAX 32 // for now
+ static int dbstate[PARAMEXPNEST_MAX];
+
/* Extract a parameter expansion expression within ${ and } from STRING.
Obey the Posix.2 rules for finding the ending `}': count braces while
***************
*** 1829,1832 ****
--- 1837,1842 ----
return (extract_heredoc_dolbrace_string (string, sindex, quoted, flags));
+ dbstate[0] = dolbrace_state;
+
pass_character = 0;
nesting_level = 1;
***************
*** 1853,1856 ****
--- 1863,1868 ----
if (string[i] == '$' && string[i+1] == LBRACE)
{
+ if (nesting_level < PARAMEXPNEST_MAX)
+ dbstate[nesting_level] = dolbrace_state;
nesting_level++;
i += 2;
***************
*** 1865,1868 ****
--- 1877,1881 ----
if (nesting_level == 0)
break;
+ dolbrace_state = (nesting_level < PARAMEXPNEST_MAX) ? dbstate[nesting_level] : dbstate[0]; /* Guess using initial state */
i++;
continue;
*** ../bash-5.2/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 3
#endif /* _PATCHLEVEL_H_ */
--- 26,30 ----
looks for to find the patch level (for the sccs version string). */
! #define PATCHLEVEL 4
#endif /* _PATCHLEVEL_H_ */