[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;
|
codepoints = temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (count != NULL)
|
||||||
|
{
|
||||||
*count = codepointCount;
|
*count = codepointCount;
|
||||||
|
}
|
||||||
return codepoints;
|
return codepoints;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user