Fix uaf in io.cache

This commit is contained in:
pancake 2018-07-17 20:26:29 +02:00
parent a13e35371e
commit 9e757e4226

View File

@ -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;
}