You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Refraction JCL forge: EXEC CICS/SQL counts wrong and the unbounded lazy regex runs over the whole joined file #3205
bugUnintended behavior or logic failure in the enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingsecuritySecurity-relevant dependency updates and patches
The counts are wrong. The pattern requires a period right after END-EXEC, but inside an IF/EVALUATE a block ends END-EXEC with no period. The lazy .*? then runs on to the next END-EXEC. and swallows every block in between. Measured on CBSA against a line-level EXEC CICS count:
program
cics_calls
actual
BNKMENU
6
62
XFRFUN
9
77
BNK1CAC
9
37
The is_cics / is_db2booleans are correct on all 36 programs, and only the booleans reach generated JCL. The counts are printed by the standalone CLI.
Unbounded lazy quantifier over a whole-file string. This is the shape how_to_add_a_language.md Rule 5 forbids for engine rules. The forge patterns get no ReDoS audit.
Fix
Count per statement instead of across the joined string. For example, match EXEC\s+CICS\b on the normalised lines, or bound the body ([^.]{0,N}?END-EXEC). Put the pattern under the same ReDoS sweep the engine uses. The engine's hit columns can't substitute: arch_io / arch_ipc mix CICS verbs, SQL, DLI and CALL (docs/refraction_engine_differential.md D4, PR for #3120).
bugUnintended behavior or logic failure in the enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingsecuritySecurity-relevant dependency updates and patches
Activity
fix(refraction): forge parser fixes -- multi-mode OPEN, per-statement…
test(refraction): pinned mainframe corpora, generated-output snapshot…
fix(refraction): bound the three quadratic tool regexes (#3222) (#3230)