[php-src] PR #22888: Fix OOB access on a SOAP array with a dimensionless arraySize
| From: | devnexen | Date: | Sat, 25 Jul 2026 16:46:26 +0000 |
| Subject: | [php-src] PR #22888: Fix OOB access on a SOAP array with a dimensionless arraySize | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-37276@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22888
Author: devnexen
calc_dimension_12() returned 0 for an arraySize holding neither a digit nor a '*', so
to_zval_array() read pos[0] and to_xml_array() read and wrote dims[0] on a zero-element allocation.
Treat such a value as one dimension of unspecified size, like a missing attribute.
Fixes GH-22887