mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-01 17:40:34 +00:00
Fix uaf in io.cache
This commit is contained in:
parent
a13e35371e
commit
9e757e4226
@ -75,10 +75,10 @@ R_API int r_io_cache_invalidate(RIO *io, ut64 from, ut64 to) {
|
||||
io->cached = 0;
|
||||
r_io_write_at (io, r_itv_begin (c->itv), c->odata, r_itv_size (c->itv));
|
||||
io->cached = cached;
|
||||
c->written = false;
|
||||
if (!c->written) {
|
||||
r_list_delete (io->cache, iter);
|
||||
}
|
||||
c->written = false;
|
||||
done = true;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user