Git Product home page Git Product logo

Comments (2)

trufae avatar trufae commented on June 4, 2024

error happens only in pa mode rn

Screenshot 2024-02-27 at 09 57 59

from radare2.

trufae avatar trufae commented on June 4, 2024

quoted explanation from @condret on this:


ok, so the reason why reading from empty va does not error is because reading from a sparsely mapped va is a valid operation for r_io_bank_read_at. if you want different behavior for anything specific (such as esil), there are 2 functions: r_io_bank_read_from_submap_at and r_io_bank_write_to_submap_at. these functions guarantee that only mapped area is accessed, that the passed address is mapped and that only one map is accessed per call.

r_io_bank_write_at and r_io_bank_read_at are in many ways the opposite, both functions access any map within the specified range. their return value reflects if any of the lower layer read/write ops has failed or not. if there is nothing mapped in the specified range, then there is no operation, nothing fails, and they return true. in case of r_io_bank_read_at the unmapped areas are filled with io.0xff. printing an error on reads from unmapped range goes against the idea of io.0xff

if you need to know, if an address is mapped you can use r_io_map_is_mapped.
if you need to know if there is a map in an address range, you can abuse r_io_map_locate with load_align = 1


from radare2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.