[wasm] Minor blob validation
This commit is contained in:
parent
918df8ccaf
commit
1537e252ba
|
@ -48,7 +48,7 @@ HB_WASM_API (bool_t, face_copy_table) (HB_WASM_EXEC_ENV
|
||||||
|
|
||||||
if (length <= blob->length)
|
if (length <= blob->length)
|
||||||
{
|
{
|
||||||
char *data = (char *) (validate_app_addr (blob->data, blob->length) ? addr_app_to_native (blob->data) : nullptr);
|
char *data = (char *) (validate_app_addr (blob->data, length) ? addr_app_to_native (blob->data) : nullptr);
|
||||||
|
|
||||||
if (unlikely (!data))
|
if (unlikely (!data))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue