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

pydasm_get_instruction crashes #1

Open
HostageBrain opened this issue May 16, 2016 · 0 comments
Open

pydasm_get_instruction crashes #1

HostageBrain opened this issue May 16, 2016 · 0 comments

Comments

@HostageBrain
Copy link

In file pydasm.c on line 459 return value of PyString_AsStringAndSize not checked (even not saved). If in func pydasm_get_instruction passed not str type - function get_instruction got trash from stack instead of pointer and crashed.
Also call of PyString_AsStringAndSize without checking of return_value present in function fill_inst_structure (line 302).
Please, add these checks.

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