<div dir="ltr">I've attached a patch from PNaCl with changes the ARM halt encoding so that it also looks like a halt in Thumb. This can catch bugs when executing ARM code as Thumb, whether it be in the context of compiler/JIT bugs, or an attacker trying to get validated ARM code to execute as Thumb (which is a concern for PNaCl).<br>
<div><br></div><div style>Note that the instruction itself isn't changing (it's still UDF), only the immediate.</div></div>