Skip to content

Fix OOB access on a SOAP array with a dimensionless arraySize#22888

Open
devnexen wants to merge 1 commit into
php:PHP-8.4from
devnexen:gh22887
Open

Fix OOB access on a SOAP array with a dimensionless arraySize#22888
devnexen wants to merge 1 commit into
php:PHP-8.4from
devnexen:gh22887

Conversation

@devnexen

Copy link
Copy Markdown
Member

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

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 phpGH-22887
@devnexen
devnexen marked this pull request as ready for review July 25, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant