diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-15 15:06:56 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-15 15:08:55 +0200 |
commit | 16b9f196782281e2bb407f3217695205d8cb70ff (patch) | |
tree | 0b483d5c9d6fcb27634eef576cf216106b7cb17f /ext/mysqli/mysqli_api.c | |
parent | f5bbb0480ef1ea03d7011af128369d10ca726d72 (diff) | |
download | php-git-16b9f196782281e2bb407f3217695205d8cb70ff.tar.gz |
Fix compile-time/run-time discrepancies with unary operators
This addresses two issues:
* ~ throws for a number of types, and we should not compile-time
evaluate in that case. Add a check similar to what we do for
binary ops.
* Unary +/- may produce a different error message due to
canonicalization of the constant operand to the RHS. To avoid
this, put the constant operand on the RHS right away.
Fixes oss-fuzz #25649.
Diffstat (limited to 'ext/mysqli/mysqli_api.c')
0 files changed, 0 insertions, 0 deletions