From df26c7469c1f2af2e643d43e2e32a6c9142e4885 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 11 Jan 2023 11:44:03 +0000 Subject: gentoo auto-resync : 11:01:2023 - 11:44:03 --- app-shells/bash/files/bash-5.2_p15-random-ub.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app-shells/bash/files/bash-5.2_p15-random-ub.patch (limited to 'app-shells/bash/files') diff --git a/app-shells/bash/files/bash-5.2_p15-random-ub.patch b/app-shells/bash/files/bash-5.2_p15-random-ub.patch new file mode 100644 index 000000000000..d4dc060b510a --- /dev/null +++ b/app-shells/bash/files/bash-5.2_p15-random-ub.patch @@ -0,0 +1,13 @@ +https://lists.gnu.org/archive/html/bug-bash/2023-01/msg00016.html +https://git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=0647e53bd15c8982d89a03c2db1643aedd7cd649 + +--- lib/sh/random.c ++++ lib/sh/random.c +@@ -75,7 +75,7 @@ u_bits32_t last; + /* Can't seed with 0. */ + ret = (last == 0) ? 123459876 : last; + h = ret / 127773; +- l = ret - (127773 * h); ++ l = ret % 127773; + t = 16807 * l - 2836 * h; + ret = (t < 0) ? t + 0x7fffffff : t; -- cgit v1.2.3