mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-04 11:43:39 +00:00
make r_io_mwrite check map->flags
This commit is contained in:
parent
f6e5b2b35f
commit
532d3c6a63
@ -267,6 +267,8 @@ R_API int r_io_mwrite (RIO *io, int fd, ut64 maddr, ut8 *buf, int len) {
|
||||
write_bytes -= d;
|
||||
maddr += d;
|
||||
}
|
||||
if (!(map->flags & R_IO_WRITE)) //check if the map allows writing
|
||||
return write_bytes;
|
||||
paddr = maddr - map->from + map->delta;
|
||||
desc = io->desc;
|
||||
io->desc = r_io_desc_get (io, fd);
|
||||
|
Loading…
Reference in New Issue
Block a user