[LTP] [PATCH] kill13, CVE-2018-10124: Reproduce INT_MIN negation

Joerg Vehlow lkml@jv-coder.de
Wed Jul 7 10:48:01 CEST 2021


Hi,

On 7/7/2021 10:35 AM, Joerg Vehlow wrote:
> Hi Richard,
>
> On 7/7/2021 9:18 AM, Richard Palethorpe via ltp wrote:
>>
> Results in INT_MIN? What does this mean or did you meant to write 
> results in ESRCH?
> Default negating int min in two's complement yields 0 (INT_MIN = 
> b1000... and negating means inverting the first bit -> thus 0).
Nevermind... Just checked. Looks like somehow x86 keeps -INT_MIN.
Now I know what you mean with "results in INT_MIN"

Joerg





More information about the ltp mailing list