History log of /PHP-8.4/ext/xml/tests/gh17187_1.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# b621b3a0 17-Dec-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-17187: unreachable program point in zend_hash

A bunch of different issues:
1) The referenced value is copied without incrementing the refcount.
The reason the refcount isn'

Fix GH-17187: unreachable program point in zend_hash

A bunch of different issues:
1) The referenced value is copied without incrementing the refcount.
The reason the refcount isn't incremented is because otherwise
the array modifications would violate the RC1 constraints.
Solve this by copying the reference itself instead and always
read the referenced value.
2) No type checks on the array data, so malicious scripts could
cause type confusion bugs.
3) Potential overflow when the arrays resize and we access ctag.

Closes GH-17205.

show more ...