mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-09 07:42:25 +00:00
Fix CID 1134666
This commit is contained in:
parent
d625175a19
commit
1cd63a2f2e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user