[php-src] PR #11170: Fix too wide OR and AND range inference
| From: | nielsdos | Date: | Mon, 01 May 2023 00:09:48 +0000 |
| Subject: | [php-src] PR #11170: Fix too wide OR and AND range inference | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-22417@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11170
Author: nielsdos
There is a typo which causes the AND and OR range inference to infer a wider range than necessary.
Fix this typo. There are many ranges for which the inference is too wide, I just picked one for AND
and one for OR that I found through symbolic execution.
In this example test, the previous range inferred for test_or was [-27..-1] instead of [-20..-1].
And the previous range inferred for test_and was [-32..-25] instead of [-28..-25].