[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 1/2] printf: fix heap buffer overflow in printf_builtin

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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtins/prin

[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