Skip to content

msgparse: preserve the value of XDR octal literals - #217

Open
pengpengyi92 wants to merge 1 commit into
XTXMarkets:mainfrom
pengpengyi92:codex/xdr-octal-literals
Open

pengpengyi92 wants to merge 1 commit into
XTXMarkets:mainfrom
pengpengyi92:codex/xdr-octal-literals

Conversation

@pengpengyi92

Copy link
Copy Markdown
Contributor

XDR permits octal constants (RFC 4506 section 6.2). A fixed opaque field of width 010 currently translates to a .msg array of length 010, which msgparse reads as decimal 10 rather than XDR's 8. Convert octal tokens to decimal before emission, leaving zero, decimal and hexadecimal tokens unchanged. This proposal does not change the .msg grammar or address signed XDR values.

Verification: python -m unittest discover -s go/msgparse -p test_xdr2msg.py (two regressions fail on main; all three cases pass after the change). Regenerating the bundled NFS .msg produces the same output as both main and the checked-in file. No cluster or VM tests were run.

@mcrnic mcrnic added ci If given to a PR, the PR will run CI checks. and removed ci If given to a PR, the PR will run CI checks. labels Nov 16, 2026
@pengpengyi92

Copy link
Copy Markdown
Contributor Author

Follow-up on verification: I reran the three Python regressions at eaa11ef locally today; all pass.

The failing EC2 run stops at checkout, before the code or tests execute: Refusing to check out fork pull request code from a 'pull_request_target' workflow. I have therefore not treated it as a patch-induced test failure or as CI passing. I have not rerun the EC2 workflow or proposed disabling that fork security guard. A maintainer-approved safe validation path is still needed; the local result does not establish Go/cluster compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants