Comments (2)
error happens only in pa mode rn
from radare2.
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)
- crashes on `/ad li a7, 227`
- UB in the default riscv plugin
- Rename expressions functionality HOT 4
- http server: null headers break HTTP RFC HOT 2
- Instructions with relocated addresses are replaced with stmdaeq HOT 1
- breakpoints doesn't work on FreeBSD HOT 11
- Implement CDPATH env var the same way we handle PATH for executables
- Support nested memory references in the RNum operations
- r2ghidra: SBORROW4 wrongly used in condition HOT 1
- r2ghidra: type casted value recovered as 0 HOT 1
- r2ghidra: operation result dereferenced by memory address HOT 1
- Separate blocks dor ascii art branch lines
- ragg2 fails to save returns of syscall HOT 1
- Missing some function xrefs using aaa; axt 0xaddr or sym.imp.func_name HOT 5
- visual-r2rop does not work
- dbt never shows anything but current function HOT 1
- Debugger Stalls W/ Connect In Profile
- Sql and tables output for zignatures
- Incorrect behavior in Xtensa disassembly backward direction HOT 6
- program execution is stopped with SIGBUS on FreeBSD
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from radare2.