You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Zend/zend_operators: fix casting underflowed unsigend to signed
Casting a huge unsigned value to signed is undefined behavior in C.
We need to cast to signed before subtracting.
In case anybody worries about truncating a 64 bit size_t to 32 bit int
too early: this problem was there before already, this commit just
makes one corner case more likely.
0 commit comments