[php-src] PR #11531: Fix OSS-Fuzz 60011: Incorrect order of instruction with nullsafe operator
| From: | nielsdos | Date: | Sun, 25 Jun 2023 21:59:36 +0000 |
| Subject: | [php-src] PR #11531: Fix OSS-Fuzz 60011: Incorrect order of instruction with nullsafe operator | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-22814@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11531
Author: nielsdos
The order of the emitted operation was incorrectly:
V2 = JMP_NULL V1 0003
V1 = FETCH_OBJ_W CV0($y) string("y")
This is because only TMP_VAR is handled in the delayed opcode flushing. We should also flush VARs.
After this patch the order becomes correct:
V1 = FETCH_OBJ_W CV0($y) string("y")
V2 = JMP_NULL V1 0003
----------
I'm not entirely sure, I haven't done much with the compiler yet; but I'm happy to
learn more about it :)