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
Reproducing this depends on getting the exact google.com version as you got, which is locale dependent. I can't reproduce it with the version google.com gives me here.
I can see the crash happens in php_mb_convert_encoding_recursive, but without a reproducer it's gonna be hard to find the root cause.
Could you maybe share the html you get from google.com?
I.e. could you please execute this script and give us the resulting out.html ?
Thank you! I can repro it on 8.2, not on 8.1. However, the bug really is there in 8.1. It's just that the encoding handling changed in 8.2 so that we can actually trigger it with your PoC in 8.2. I found the root cause being missing error handling and I'll work on a fix now.
Activity
ndossche commentedon Feb 19, 2023
Reproducing this depends on getting the exact google.com version as you got, which is locale dependent. I can't reproduce it with the version google.com gives me here.
I can see the crash happens in php_mb_convert_encoding_recursive, but without a reproducer it's gonna be hard to find the root cause.
Could you maybe share the html you get from google.com?
I.e. could you please execute this script and give us the resulting out.html ?
liviuconcioiu commentedon Feb 19, 2023
Here it is.
out.zip
Also, on CentOS with php-fpm this is the result:
ndossche commentedon Feb 19, 2023
Thank you! I can repro it on 8.2, not on 8.1. However, the bug really is there in 8.1. It's just that the encoding handling changed in 8.2 so that we can actually trigger it with your PoC in 8.2. I found the root cause being missing error handling and I'll work on a fix now.
Fix phpGH-10627: mb_convert_encoding crashes PHP on Windows
Fix GH-10627: mb_convert_encoding crashes PHP on Windows
Merge branch 'PHP-8.1' into PHP-8.2
Merge branch 'PHP-8.2'