Skip to content

How to create a NonNullPointer parameter? #31

Open
@karthikbhata97

Description

I am executing a function which takes pointer to a following struct. I want to pass a non-null pointer, hence I use ParameterVal::NonNullPointer. But it reports a NullPointerDereference if I tried to store to session member (test->session = 0).

struct Test {
  uint32_t arg;
  uint32_t func;
  uint32_t session;
};

Issue seems to be due to the param_size which is not of the actual object size.

bvparam._ne(&state.zero(param_size)).assert()?;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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