Dirk Mueller
dbb08c9c55
- Update to gawk 5.2.0 * Numeric scalars now compare in the same way as C for the relational operators. Comparison order for sorting has not changed * If the AWK_HASH environment variable is set to "fnv1a" gawk will use the FNV1-A hash function for associative arrays * There is now a new function, mkbool(), that creates Boolean-typed values * As BWK awk has supported interval expressions since 2019, they are now enabled even if --traditional is supplied * The rwarray extension has two new functions, writeall() and readall() * The new `gawkbug' script should be used for reporting bugs * The manual page (doc/gawk.1) has been considerably reduced in size * Gawk now supports Terence Kelly's "persistent malloc" (pma), allowing gawk to preserve its variables, arrays and user-defined functions between runs * Some subtle issues with untyped array elements being passed to functions have been fixed * Syntax errors are now immediately fatal - gawk-5.1.1-Disable-racy-test-in-test-iolint.awk.patch: removed - pma.patch: Handle hole bigger than half the address space - nan-tests.patch: fix non-portable NaN tests OBS-URL: https://build.opensuse.org/request/show/1001442 OBS-URL: https://build.opensuse.org/package/show/Base:System/gawk?expand=0&rev=88
13 lines
558 B
Diff
13 lines
558 B
Diff
Index: gawk-5.2.0/support/pma.c
|
|
===================================================================
|
|
--- gawk-5.2.0.orig/support/pma.c
|
|
+++ gawk-5.2.0/support/pma.c
|
|
@@ -346,6 +346,7 @@ static void * addrgap(off_t n) { // fin
|
|
for (U = 1; ; U *= 2) // double upper bound until failure
|
|
if (MAP_FAILED == (A = MMAP(U))) break;
|
|
else MUNMAP(A, U);
|
|
+ if (U == 0) U = -1;
|
|
while (1 + L < U) { // binary search between bounds
|
|
size_t M = L + (U - L) / 2; // avoid overflow
|
|
if (MAP_FAILED == (A = MMAP(M))) { U = M; }
|