Fix CID 1134666

This commit is contained in:
jvoisin 2014-04-30 03:44:28 +02:00
parent d625175a19
commit 1cd63a2f2e

View File

@ -39,6 +39,8 @@ static int assemble(RAsm *a, RAsmOp *op, const char *buf) {
const ut8 *begin, *end;
close (ofd);
ofd = open (opath, O_BINARY|O_RDONLY);
if (ofd < 1)
return -1;
len = read (ofd, op->buf, R_ASM_BUFSIZE);
begin = r_mem_mem (op->buf, len, (const ut8*)"BEGINMARK", 9);
end = r_mem_mem (op->buf, len, (const ut8*)"ENDMARK", 7);