[rtext] Add security check for LoadCodepoints()

This commit is contained in:
konakona418 2026-03-25 16:10:25 +08:00
parent 5dd4036ed0
commit f419dfcc79

View File

@ -2175,7 +2175,10 @@ int *LoadCodepoints(const char *text, int *count)
codepoints = temp; codepoints = temp;
} }
*count = codepointCount; if (count != NULL)
{
*count = codepointCount;
}
return codepoints; return codepoints;
} }