More reliable decoding

This commit is contained in:
Pierre Pronchery 2011-05-07 23:16:53 +00:00
parent e4fc7626ff
commit 27f30975b1

View File

@ -342,6 +342,8 @@ int code_decode_at(Code * code, char const * section, off_t offset,
for(i = 0; i < calls_cnt; i++) for(i = 0; i < calls_cnt; i++)
code_print(code, &calls[i]); code_print(code, &calls[i]);
free(calls); free(calls);
if(arch_seek(code->arch, offset + size, SEEK_SET) < 0)
return -1;
return 0; return 0;
} }