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
{{ message }}
Repository navigation
Random extension random.c:95:20: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int' #9083
Activity
cmb69 commentedon Jul 21, 2022
ext/spl/php_spl.c includes ext/random/php_random.h:
php-src/ext/spl/php_spl.c
Line 39 in 067a302
However, that is apparently not needed for that compilation unit.
guilliamxavier commentedon Jul 21, 2022
@cmb69 indeed, this line (previously
php-src/ext/spl/php_spl.c
Line 39 in 8fec415
But besides that, there's indeed an UB to "fix": #9056 (comment)
Girgias commentedon Jul 21, 2022
Removing it doesn't seem to fix the issue in SPL anyway
guilliamxavier commentedon Jul 21, 2022
Sorry for the noise:
php-src/ext/dom/php_dom.c
Line 25 in f60f6be
php-src/ext/dom/php_dom.c
Line 25 in 8fec415
Anyway, removing it won't fix the issue either 😅
cmb69 commentedon Jul 21, 2022
Nope, but #9056 (comment) should.
Fix shift in rand_rangeXX()
Fix shift in rand_rangeXX() (#9088)
[ci skip] Update NEWS for byte expansion in rand_rangeXX()