Skip to content

Commit

Permalink
Revert "cs_disasm_ex() should verify handle->disasm() to catch the is…
Browse files Browse the repository at this point in the history
…sue that this API is still called after cs_close(). bug reported by Gul"

This reverts commit 2edef8f.
  • Loading branch information
aquynh committed Feb 27, 2014
1 parent 2edef8f commit 5848aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ size_t cs_disasm_ex(csh ud, const uint8_t *buffer, size_t size, uint64_t offset,
void *total = NULL;
size_t total_size = 0;

if (!handle || handle->disasm == NULL) {
if (!handle) {
// FIXME: how to handle this case:
// handle->errnum = CS_ERR_HANDLE;
return 0;
Expand Down

0 comments on commit 5848aaa

Please sign in to comment.