Repository navigation
docs(kernel-modules): correct the signature trailer magic length - #7491
XiaoBinGan wants to merge 1 commit into
Conversation
Codex Review SummaryThis 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 documentation-only correction appears safe to merge. SummaryCorrects the signature trailer magic length from 27 bytes to 28 bytes in
Reviews (5) · Last reviewed commit: "docs(kernel-modules): correct the signat..." · Reviewed by Greptile |
ae575b8 to
9021484
Compare
|
The fix is correct and still applies on current |
9021484 to
cdef3e9
Compare
The guide calls the trailer magic "the 27-byte magic `~Module signature appended~\n`", but that string including the trailing newline is 28 bytes. The source owner agrees: MODULE_SIGNATURE_MAGIC is "~Module signature appended~\n" and KernelModuleService.ts compares signature.magic.bytes against MODULE_SIGNATURE_MAGIC.length, which is 28. The sentence contradicts itself as written: the quoted literal contains \n and the count omits it. Fixes morluto#7324.
cdef3e9 to
a2a4bf1
Compare
|
Closing so the slot can carry a code fix. The correction is still valid against current |
Summary
docs/kernel-modules.mdcalls the trailer magic "the 27-byte magic~Module signature appended~\n". That literal, including the trailing newline, is 28 bytes.Problem and expected behavior
The sentence contradicts itself: the quoted literal contains
\nand the count omits it. The source owner agrees with the literal,MODULE_SIGNATURE_MAGIC = "~Module signature appended~\n", andsrc/application/binaryDiagnostics/KernelModuleService.tscompares againstMODULE_SIGNATURE_MAGIC.length, which is 28. Measured: 28 bytes with the newline, 27 without.Change and scope
One word:
27-byteto28-byte. Nothing else changes.Contract and boundary impact
Documentation only. No CLI, MCP/tool-catalog, provider, artifact, or generated-metadata change;
docs:checkpasses unchanged.Evidence and regression coverage
The source and behaviour evidence is in the section above. No tests added — this changes prose only, and the owning tests already cover the behaviour it describes.
Validation performed
npx oxfmt --checkon the changed file — exit 0npm run docs:check— exit 0, 9 tests passedCompatibility, safety, and release
No breaking change, migration step, package or release metadata impact, or security review. Documentation only.
Author readiness
Human owner: @XiaoBinGan
Before merge
type(scope): outcome.Fixes [Bug] Kernel-module guide describes the 28-byte trailer magic as 27 bytes #7324.