diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-01-10 13:22:25 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-01-10 13:22:25 +0100 |
commit | baa41c785551ae0580526298aa6fadf4534fc8c0 (patch) | |
tree | fd23926ca1e7d7f2be2b2b4e2dd24fb32a7e8501 /testsuite/ln | |
parent | 2c876774a90ddb7478937ead096937f64e6bd7ec (diff) | |
download | busybox-baa41c785551ae0580526298aa6fadf4534fc8c0.tar.gz |
ash: make ${v:N:M} more robust for very large M by clamping to MIN/MAX_INT
Before this patch, "${v:2:0x100000001}" = "${v:2:1}",
and similarly, constructs like "${v:2:9999999999}" may give wrong result
due to int overflows.
function old new delta
substr_atoi - 43 +43
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/ln')
0 files changed, 0 insertions, 0 deletions