mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-21 12:48:36 +00:00
Bring -w- to malloc temporary
This commit is contained in:
parent
f129316701
commit
4701a89b63
@ -774,6 +774,9 @@ R_API RCoreFile *r_core_file_open(RCore *r, const char *file, int flags, ut64 lo
|
||||
if (!flags) {
|
||||
flags = R_IO_READ;
|
||||
}
|
||||
if (strstr (file, "malloc://")) {
|
||||
flags = R_IO_READ | R_IO_WRITE;
|
||||
}
|
||||
r->io->bits = r->assembler->bits; // TODO: we need an api for this
|
||||
fd = r_io_open_nomap (r->io, file, flags, 0644);
|
||||
if (!fd && openmany > 2) {
|
||||
|
Loading…
Reference in New Issue
Block a user