krakjoe / ustring

UnicodeString for PHP7

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cast crashes

pierrejoye opened this issue · comments

I can fix it here later but just in case you are on it:

in php_ustring_cast:

Z_STR_P(zwrite) = STR_ALLOC(length+1, 0); already sets the length correctly and it should not be overridden afterwards. It leads to crash (wrong buffer size given to ICU > crash).