Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create a NonNullPointer parameter? #31

Open
karthikbhata97 opened this issue May 27, 2024 · 0 comments
Open

How to create a NonNullPointer parameter? #31

karthikbhata97 opened this issue May 27, 2024 · 0 comments

Comments

@karthikbhata97
Copy link

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()?;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant