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
smnandre
changed the title
TwigComponent: ComponentTokenParser::generateEmbeddedTemplateIndex failing on 32bit platform
[TwigComponent] ComponentTokenParser failing to generate template index on 32bit platform
Feb 12, 2025
Hi @smnandre, thanks for your quick response and the PR! The code changes (and documentation!) look good to me. I'll apply the patch and run it on that 32-bit machine, just to make sure.
This issue affects only 32bit platforms.
Appending digits to a 32bit integer in ComponentTokenParser::generateEmbeddedTemplateIndex is prone to integer overflows on 32bit systems, resulting in errors like:
I guess, that’s what happened in EasyCorp/EasyAdminBundle#6713
Furthermore,
crc32
itself can return negative integers on 32bit which can lead to unexpected results (-
in compiled class names).The text was updated successfully, but these errors were encountered: