decomp(nhttp): distinguish raw token bytes from signed folds #1063
Reference in New Issue
Block a user
Delete Branch "agent/bittle/nhttp-token-review"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Partial reconstruction
Keep the left raw byte in its native word-sized lifetime, and make the right input's byte-load/signed-fold boundary explicit. The target reads right before left, preserves raw left separately from its signed folded result, and sign-extends that raw byte again for NUL/space termination. Only these two source lines change.
The sole remaining mismatch is the order of two independent initial li instructions (r9=0 and r7=0x5a), both before use. No exact or linking claim.
Independent verification
Base e3095dfb979ded66d2b6a71228563066c5445f5a; tested tree
c5fcaca90a.Details: tools/decomp-assist/allhands-nhttp-token-byte-roles.attempts.md. No new helper, shared header, compiler setting or linking flag.
Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.