Skip to content

fix: keep Annex B block functions out of the string-array wraps - #471

Merged
Sorte1 merged 1 commit into
mainfrom
fix/ox2-d4b
Nov 21, 2026
Merged

Sorte1 merged 1 commit into
mainfrom
fix/ox2-d4b

Conversation

@Sorte1

@Sorte1 Sorte1 commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Fixes D1 and D2 of review r7-ml8-d4.

A block function in sloppy code also writes its value to the outer var binding of the same name (Annex B). The block-rotator wrap moved such a leading function into a new function, so that copy was lost (node function, untwist number, both lanes). The wrap now refuses a leading function declaration when a scope above the block binds the name, when the enclosing var scope is the top level, or when the name is an unresolved reference. The called rotator plan keeps such a function in its block, and the cookie wrap refuses such a declared rotator. checksum_plan moves only var aliases and the loop, so it was not affected. A leading using/await using declaration is refused too.

Rows for the eight r7 repros, a called-rotator repro and the two using shapes. Full obfuscator sweep identical per case to main in both lanes, the #461 cases (pw012-n3, rnd000-m2) byte-identical, Krunker byte-identical in both lanes.

@Sorte1
Sorte1 merged commit 799bf0e into main Nov 21, 2026
9 checks passed
@Sorte1
Sorte1 deleted the fix/ox2-d4b branch November 21, 2026 01:45

This branch was successfully deployed

1 active deployment
preview — 4c4801ac Deployed Nov 21, 2026 by Sorte1 via deploy #1373
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.

1 participant