Skip to content

pydasm_get_instruction crashes #1

@HostageBrain

Description

@HostageBrain

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions