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.
In file pydasm.c on line 459 return value of PyString_AsStringAndSize not checked (even not saved). If in func
pydasm_get_instructionpassed not str type - functionget_instructiongot 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.