Re: [PATCH 2/2] printf: fix heap buffer overflow in bexpand

2024-08-31 Thread Chet Ramey
On 8/29/24 10:22 AM, Andrey Kovalev wrote: In the loop, when iterating through the array, there was no check whether an element of the array goes beyond its limits. And with certain input data, there is an outflow from the array. Thanks for the report. This was fixed back in May, 2023, the resu

[PATCH 2/2] printf: fix heap buffer overflow in bexpand

2024-08-29 Thread Andrey Kovalev
In the loop, when iterating through the array, there was no check whether an element of the array goes beyond its limits. And with certain input data, there is an outflow from the array. --- builtins/printf.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtins/printf.de

[PATCH 2/2] printf: fix heap buffer overflow in bexpand

2024-08-29 Thread Andrey Kovalev
In the loop, when iterating through the array, there was no check whether an element of the array goes beyond its limits. And with certain input data, there is an outflow from the array. --- builtins/printf.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtins/printf.de

[PATCH 2/2] <<# indent-stripping heredoc: indented printing

2023-07-13 Thread Grisha Levit
Enable prettier-printing of <<# heredocs by printing the body indented one level further than surrounding text and the final delimiter at the same indentation level as the surrounding text. 0002-indent-stripping-heredoc-indented-printing.patch Description: Binary data

[PATCH v2 2/2] Work around GNU/Linux timestamp glitch

2023-03-24 Thread Paul Eggert
Without this patch, Bash can hand out user-visible timestamps that are out of order, because on GNU/Linux the 'time' function uses a different clock than file timestamps and the 'gettimeofday' function. The out-of-order timestamps can lead to user-confusion. https://sourceware.org/bugzilla/show_bug

Re: [PATCH 2/2] use AC_CHECK_TOOL with `ar` rather than AC_CHECK_PROG

2013-01-31 Thread Chet Ramey
> The TOOL variant will automatically search for a $host prefixed program > (e.g. x86_64-pc-linux-gnu) rather than looking for `ar` only. This is > useful when cross-compiling and it matches the behavior of the other > tools that configure relies on (e.g. cc & ranlib). Thanks for the fix. Chet

[PATCH 2/2] use AC_CHECK_TOOL with `ar` rather than AC_CHECK_PROG

2013-01-31 Thread Mike Frysinger
The TOOL variant will automatically search for a $host prefixed program (e.g. x86_64-pc-linux-gnu) rather than looking for `ar` only. This is useful when cross-compiling and it matches the behavior of the other tools that configure relies on (e.g. cc & ranlib). Signed-off-by: Mike Frysinger ---

[PATCH 2/2] Multibyte support for ansic_quote() function

2011-08-16 Thread Roman Rakus
Correctly check for printable characters using wchar_t* and iswprint(). Signed-off-by: Roman Rakus --- bash-4.2/lib/sh/strtrans.c | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/bash-4.2/lib/sh/strtrans.c b/bash-4.2/lib/sh/strtrans.c index 57f9af0..a31b

{-2..2}

2006-01-29 Thread William Park
Hi Chet, Bash-3.0 introduced {-2..2} syntax which generates -2, -1, 0, 1, 2. Unfortunately, it clashes with my extension which doesn't do negative integers; instead, mine was designed for "equal width" integer, like 00, 01, 02. Do you plan to keep the negative integer features o