mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-23 05:31:32 +00:00
Check argument pointers for null to WASI calls
This commit is contained in:
@ -781,7 +781,11 @@ bool wasmer_validate(const uint8_t *wasm_bytes, uint32_t wasm_bytes_len);
|
||||
wasmer_import_object_t *wasmer_wasi_generate_default_import_object(void);
|
||||
|
||||
/**
|
||||
* Creates a WASI import object
|
||||
* Creates a WASI import object.
|
||||
*
|
||||
* This function treats null pointers as empty collections.
|
||||
* For example, passing null for a string in `args`, will lead to a zero
|
||||
* length argument in that position.
|
||||
*/
|
||||
wasmer_import_object_t *wasmer_wasi_generate_import_object(const wasmer_byte_array *args,
|
||||
unsigned int args_len,
|
||||
|
Reference in New Issue
Block a user