Skip to content

faulty/missing check in dispatch.c  #24

@bontric

Description

@bontric

meta is a pointer to a message_params_object stored in a message_object and therefore can't be NULL.

// dispatch.c:169
 meta = &request->params.obj[0].data.params;
// ...
// dispatch.c:176
if (!meta) {
  error_set(api_error, API_ERROR_TYPE_VALIDATION,
         "Error dispatching run API request. meta params is NULL");
  return (-1);
  }

meta->obj could potentially be NULL though and there is no check for it!

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