[PATCH] shell: avoid segfault on ${0::0/0~09J}. Closes 15216
Radoslav Kolev
radoslav.kolev at suse.com
Mon Aug 28 13:06:26 UTC 2023
On 12/29/22 3:45 PM, Ron Yorston wrote:
> Both ash and hush segfault when asked to evaluate ${0::0/0~09J}.
>
> The stack for integer values in the arithmetic code was too small:
> '09J' results in three integers. The leading zero starts an octal
> number but '9' isn't an octal digit so '0', '9' and the variable
> 'Z' are placed on the stack.
>
> Signed-off-by: Ron Yorston <rmy at pobox.com>
Hello,
is there some problem with this patch or another reason it's not applied
yet? Or it just slipped trough the cracks? If so please consider
applying it.
Thank you!
Rado
More information about the busybox
mailing list