Re: segfault with invalid shell script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 23/11/2022 04:04, Christoph Anton Mitterer wrote:
Hey.

Wasn't busxybox' sh (and that of klibc-utils) based on dash/ash as
well?

Yes, it is.

Tried it with them, but there I couldn't reproduce the issue.

With the busybox I have on my own system, I ran reproduce it with:

  busybox ash -c 'f() { echo ${PWD-${PWD!}}; }; f'

This segfaults.

If you try it with ${...//...}, busybox added code to implement that, so it does not hit the "Bad substitution" logic.

Cheers,
Harald van Dijk

Thanks,
Chris.




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux