Functionally broken code for reading and writing registers, likely due to typos,
and could cause out-of-bounds memory access.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thank you. Yes, this does need a unit test
lldb/source/Plugins/Instruction/ARM/EmulationStateARM.cpp | ||
---|---|---|
54 | Here index 'i' represents an offset starting at dwarf_d0, and index 'idx' is normalized to start at 0. | |
95 | Also clearly a typo as can be seen from the if condition, and the corresponding store code. |
Here index 'i' represents an offset starting at dwarf_d0, and index 'idx' is normalized to start at 0.
"i" will always be greater than 16 causing the 'else' statement to always execute regardless of the intent.