[php-src] PR #11676: ext/posix: posix_isatty() fix use-of-uninitialized-value
| From: | Girgias | Date: | Tue, 11 Jul 2023 15:34:33 +0000 |
| Subject: | [php-src] PR #11676: ext/posix: posix_isatty() fix use-of-uninitialized-value | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-22999@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11676
Author: Girgias
When the value passed is not representable as an int then it is not a TTY and thus should return
false immediately. Moreover, we need to actually retrieve the zend_long from the zval.
This was reported by MSAN.