mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-06 13:29:46 +00:00

- `r_io_read` calls `r_io_read_at` with vaddrs, and not with maddr - `r_io_section_maddr_to_vaddr` uses a reverse iterator to check the sections - adds `r_io_section_mget_prev`: this function can be removed if the behavior of `r_io_section_mget` is changed to use a reverse iterator Squashed commit of the following: commit a31d359bf1c79b92f518fa8237c7f9d4cf146577 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Dec 9 11:40:54 2015 -0800 fetches sections starting from the back commit 0b687439ea6225c8db9f387cc93bc53300e297a7 Merge: 8485676 92c1631 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Dec 8 23:40:35 2015 -0800 Merge branch 'master' of https://github.com/radare/radare2 into revert_3788 commit 8485676cf5c042d8c4e10c798b4fadb1a43df50c Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Dec 8 23:09:05 2015 -0800 This seems to be the "correct" patch... ...but it breaks some tests... apprently searches a few bytes out of the section creating some false-positives hits I'm just commiting this PR to give an idea of where the bug is commit 2e4b8de397a4ef23c02c3e08113cf6b984479275 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Dec 8 22:46:29 2015 -0800 not good... reverting commit 324afba7e2853ddb72750f7f8b38bf59af310873 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Dec 8 22:09:25 2015 -0800 workaround for bug 3788 commit 6e6283eaa18edcca1987a8f4227f163a6926c430 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Dec 8 15:14:12 2015 -0800 Reverts fix for bug #3788 please, reopen bug #3788
RIO design ========== rio api allows to seamlessly access to underlying IO backends and define rules on top of it to act as an mmu. What do io.va means? -------------------- - obey sections - Plugins Actions ------- - open - read - seek - write - close Layers ------ - cache caches write ops and modifies reads - map allows to map a certain file at a given offset - sections like maps, but provide more information for virtual addressing Features -------- - undo - buffer - desc fn read(io: IO) { ut64 offset; if io.offset }