]> granicus.if.org Git - php/commit
Fix _php_math_round UB
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 19 Jun 2019 11:18:23 +0000 (13:18 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 19 Jun 2019 13:09:00 +0000 (15:09 +0200)
commit0c0659dc50dc17b267072f95c6e1ebddcc91e82d
tree4d41aa735bf9dc4c4967462a107df3609ac5e348
parent317dfab81bedd918de9cf6a9b93428a0b0f86307
Fix _php_math_round UB

php_intlog10abs() is ill-defined for a zero value. Avoid calling it
altogether as there's nothing to round with a zero value.
ext/standard/math.c