[rtext] Add security check for LoadCodepoints()
This commit is contained in:
parent
5dd4036ed0
commit
f419dfcc79
|
|
@ -2175,7 +2175,10 @@ int *LoadCodepoints(const char *text, int *count)
|
|||
codepoints = temp;
|
||||
}
|
||||
|
||||
*count = codepointCount;
|
||||
if (count != NULL)
|
||||
{
|
||||
*count = codepointCount;
|
||||
}
|
||||
return codepoints;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user