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
There are edge cases where computations can cause an integer overflow,
which is undefined behaviour. Lately, some fuzzers seem to be hitting
these quite frequently. While this behaviour is undefined, it doesn't
actually matter in practice, the worst effect is having a wrong
computation result, but no sane person would do computations on e.g. the
year pow(2,63).
Still, undefined behaviour is bad.
Make the wrapping behaviour defined by using -fwrapv when possible.
The scope of this is limited to timelib and doesn't affect php_date.c.
The reason for this is that this may in theory prevent some
optimizations and it also seems bad to affect code that lives so close
to the PHP-native edge.
I tested all issues.
This fixes all but one issues, the remaining issue is in php_date.c.
FixesGH-13881.
FixesGH-14075.
FixesGH-15150.
FixesGH-16034.
FixesGH-16035.
FixesGH-16048.
FixesGH-16050.
FixesGH-16051.
FixesGH-16052.
FixesGH-16775.
FixesGH-16864.
FixesGH-16865.
FixesGH-16975.
FixesGH-17025.
FixesGH-17059.
ClosesGH-17060.
0 commit comments