You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DOM\XMLDocument::createComment() triggers undefined behavior with null byte #18979
/home/program/ext/dom/xml_serializer.c:643:52: runtime error: addition of unsigned offset to 0x602000002b50 overflowed to 0x602000002b4f
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/program/ext/dom/xml_serializer.c:643:52 in
But I expected this output instead:
string(22) "<!-- is -a- comment-->"
PHP Version
PHP 8.5.0-dev (cli) (built: Jun 4 2025 20:21:49) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.5.0-dev, Copyright (c) Zend Technologies
Activity
Fix phpGH-18979: DOM\XMLDocument::createComment() triggers undefined …
Merge branch 'PHP-8.4'
Fix GH-18979: DOM\XMLDocument::createComment() triggers undefined beh…