1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext
Tim Düsterhus 423960aad3 uri: Fix lexbor memory management in uri_parser_whatwg.c (#19591)
Calling `lexbor_mraw_clean()` after a specific number of parses will destroy
the data for any live `Uri\WhatWg\Url` objects, effectively resulting in a
use-after-free.

Fix the issue by removing the periodic `lexbor_mraw_clean()` call.  Instead we
implement `php_uri_parser_whatwg_free()`. This also requires to move the
destruction of the lexbor structures from RSHUTDOWN to POST_ZEND_DEACTIVATE to
prevent a use-after-free in `php_uri_parser_whatwg_free()` since otherwise the
mraw would already have been destroyed.
2025-08-26 23:17:21 +02:00
..
2025-08-07 19:09:03 +02:00
2025-03-14 10:51:50 +01:00
2025-08-10 14:17:19 +02:00
2025-07-25 12:05:17 +02:00
2025-08-24 03:55:15 +01:00
2025-08-08 20:33:00 +02:00
2025-07-29 14:00:37 +02:00
2025-08-15 08:08:16 +01:00
2025-08-23 15:28:56 +02:00
2025-08-16 19:28:11 +01:00
2025-07-20 17:20:53 +02:00
2025-08-22 16:39:05 +02:00
2025-06-21 18:03:50 +01:00