Comment by vintagedave
2 days ago
The article states that on ARM Thumb, the instruction meant to be interpreted as a trap does not trap but jumps, instead.
2 days ago
The article states that on ARM Thumb, the instruction meant to be interpreted as a trap does not trap but jumps, instead.
[flagged]
You are misunderstanding the purpose of the initial jump in a trap sled. It is to redirect code which expects to flow through the sled past the traps, while leaving the traps for anything else which lands in that range.
The padding the article is talking about lives between functions. It is not meant to be executed, nothing is needed to jump over it. (The unconditional bx lr before it is the return at the end of the function.)
[flagged]
2 replies →