Re: [PATCH] libbb: fix handle errors and overflow in xmalloc_readlink in xreadlink.c

2025-02-05 Thread Harald van Dijk
On 06/02/2025 00:11, Anton Moryakov wrote: report Possible integer overflow: left operand is tainted. An integer overflow may occur due to arithmetic operation (addition) between variable 'readsize' and value '1', when 'readsize' is tainted { [-2147483648, -2], [0, 2147483647] } Corrections expl

[PATCH] libbb: fix handle errors and overflow in xmalloc_readlink in xreadlink.c

2025-02-05 Thread Anton Moryakov
report Possible integer overflow: left operand is tainted. An integer overflow may occur due to arithmetic operation (addition) between variable 'readsize' and value '1', when 'readsize' is tainted { [-2147483648, -2], [0, 2147483647] } Corrections explained: - Combined error and overflow chec