History log of /PHP-8.4/ext/json/tests/gh15168.phpt (Results 1 – 5 of 5)
Revision Date Author Comments
# f3e87e2a 22-Oct-2024 Arnaud Le Blanc

Fix tests: Prevent stack overflow during dtor

On s390x the stack is smaller and/or the object dtor code uses more stack,
which causes the destruction of deeply nested objects to crash in

Fix tests: Prevent stack overflow during dtor

On s390x the stack is smaller and/or the object dtor code uses more stack,
which causes the destruction of deeply nested objects to crash in these
tests. Here I ensure that objects are released one by one at the end of the
tests to avoid recursive dtor.

Closes GH-16561
Fixes GH-16528

show more ...


# 4a169409 30-Sep-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

[ci skip] Skip test under ASAN

We backport 1d0fb3668137c436f0209969620f5c1bfd347c4b to PHP-8.3.


# bf1021c1 30-Sep-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix typo


# 1d0fb366 30-Sep-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

[ci skip] Skip test under ASAN


# a551b99b 25-Sep-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-15168: stack overflow in json_encode()

The JSON encoder is recursive, and it's far from easy to make it
iterative. Add a cheap stack limit check to prevent a segfault.
This us

Fix GH-15168: stack overflow in json_encode()

The JSON encoder is recursive, and it's far from easy to make it
iterative. Add a cheap stack limit check to prevent a segfault.
This uses the PHP_JSON_ERROR_DEPTH error code that already talks about
the stack depth. Previously this was only used for the $depth argument.

Closes GH-16059.

show more ...