Skip to content

device_runtime_call returns SUCCESS even though the offloading failed #1

@mateuszkobak

Description

@mateuszkobak

ret = device_runtime_call(&t_my_device_runtime, &t_faas, new_reqs, (void**)&exec_response);

The return value is SUCCESS although offloading failed. Moreover the pointer exec_response is not initialized and in the following lines it is dereferenced resulting in memory access violation.

Initializing exec_response to NULL fixed it for me, but in my opinion relying on the user initializing the pointer to NULL is not a good pattern. So here:

if(*pt_exec_response == NULL)

this check makes sense only if the Client actively sets this pointer to NULL on some error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions