clay icon indicating copy to clipboard operation
clay copied to clipboard

Bug: Potential Integer Overflow in debug tools Clay__IntToString function

Open Rechenmaschine opened this issue 2 months ago • 2 comments

The function Clay__IntToString(int integer) could overflow for INT_MIN due to signed integer negation (integer = -integer), possibly resulting in undefined behavior.

https://github.com/nicbarker/clay/blob/a48d40635a736a761c0cea0fa4582a30ec204676/clay.h#L2281-L2283

Rechenmaschine avatar Dec 22 '24 01:12 Rechenmaschine