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
/home/phpfuzz/WorkSpace/flowfusion/php-src/ext/gd/libgd/gd_filter.c:442:45: runtime error: -nan is outside the range of representable values of type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/phpfuzz/WorkSpace/flowfusion/php-src/ext/gd/libgd/gd_filter.c:442:45 in
Activity
devnexen commentedon Sep 2, 2025
seems more a fix for libgd itself, will have better look later
alexandre-daubois commentedon Sep 2, 2025
Present from 8.3. Shouldn't just a isnan check be added in
gdImageConvolution?I'm not sure which parts should be fixed upstream rather than in this repo though...
devnexen commentedon Sep 2, 2025
It is preferable to avoid using zend api in the libgd itself but I ll look into it..
Fix phpGH-19666: imageconvolution() unexpected nan filter value
gdImageConvolution(): UBSAN when elements of matrix are set with -INF.
gdImageConvolution(): UBSAN when elements of matrix are set with -INF.
gdImageConvolution(): UBSAN when elements of matrix are set with -INF.
gdImageConvolution(): UBSAN when elements of matrix are set with -INF.
devnexen commentedon May 22, 2026
good news, seems upstream situation is moving forward, there is bug fixes merged that we can start to apply here.
Merge branch 'PHP-8.5'
Merge branch 'PHP-8.5'
Fix phpGH-19666: imageconvolution() unexpected nan filter value.
Merge branch 'PHP-8.4' into PHP-8.5
ext/intl: fix deprecation warning for phpGH-19666 test.