[wasm] Minor blob validation

This commit is contained in:
Behdad Esfahbod 2023-02-25 10:35:15 -07:00
parent 918df8ccaf
commit 1537e252ba
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ HB_WASM_API (bool_t, face_copy_table) (HB_WASM_EXEC_ENV
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))
{