mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 23:30:44 +00:00
The shared decoder already stopped before fetching a 16th byte, but it reported the instruction as unsupported, so both engines exited with an illegal instruction. It now returns DecodeError::TooLong, which maps to ExitReason::GeneralProtection (Intel SDM Vol. 3A, 7.15). The DBT retries a block that fails this way one instruction at a time, as it already does for illegal instructions and fetch faults, so earlier instructions in the block complete and the fault reports the overlong instruction's RIP. The known answer recorded as a defect by #155 is enabled, with three more cases, and two page-end tests check that no 16th byte is fetched. Signed-off-by: Bartosz Szczepański <bartosz.szczepanski@hotmail.com>