Repository navigation
fix(native): name the unsupported Thumb mode for an odd raw ARM entry - #10683
Conversation
A 32-bit ARM raw-binary entry such as 0x4001 was refused as not 4-byte aligned, and the remediation only said to correct the load argument. An odd ARM address is how a Thumb function pointer is spelled, so a caller holding one could not tell that the real limit is the unsupported raw Thumb mode rather than a typo. For `arm` entries with bit 0 set, the refusal now adds that the address can be a Thumb function pointer but raw-binary arm decodes ARM state only, so a Thumb entry is unsupported and the entry was not adjusted. It does not assume the caller's mode or change the entry. Even misaligned ARM entries and all arm64 entries keep the existing text. Validation: src/domain/rawBinary.test.ts fails on the base (the odd ARM cases lack the note) and passes 32/32 after; check:fast passes. Refs morluto#8210
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Low impact] This PR appears safe to merge. SummaryAdds a Thumb explanation when
Reviews (1) · Last reviewed commit: "fix(native): name the unsupported Thumb ..." · Reviewed by Greptile |
|
Ready to merge: full CI is green on this head, Greptile's latest review is 5/5 with no open threads, and it merges into main 42cab26 without conflicts. |
Lists morluto/rea#10683 and morluto/rea#10663, both merged on 18 November.
Summary
Refs #8210.
open_binarywithformat: "raw-binary",architecture: "arm"andentry_point: "0x4001"is refused because the entry is not 4-byte aligned. The remediation only says to correct the load argument. An odd ARM address is how a Thumb function pointer is spelled, so the caller cannot tell that the real limit is the unsupported raw Thumb mode.Change and scope
src/domain/rawBinary.ts: for anarmentry with bit 0 set, the refusal reason now ends with: "an odd address can be a Thumb function pointer with bit 0 set, but raw-binary arm decodes ARM state only, so a Thumb entry is unsupported and the entry was not adjusted."0x…2) keep the existing text. So do allarm64entries, because AArch64 has no Thumb state.Evidence and regression coverage
src/domain/rawBinary.test.ts: the existing unaligned-entry case now expects the note for oddarmentries only. It fails on the base (1 failed, 31 passed) and passes after the change (32 passed).Validation performed
npm run test:local -- src/domain/rawBinary.test.ts: 32 passed.npm run check:fastpassed.Author readiness
Human owner: @Davmunrey
Before merge
type(scope): outcome.