Skip to content

cobol calls_out never sees CALL 'LITERAL': the literal shield blanks the program name first #3393

Closed

Description

@squid-protocol

Found while implementing #3362. The detector applies _apply_literal_shield before running calls_out, so in CALL 'SUBPROG' USING X the quoted program name is blanked, and cobol's CALL\s+['\"]?(name) never matches. Only CALL WS-PGM (identifier) and PERFORM reach calls_out_to.

Repro: splice a paragraph containing CALL 'PROG2'. and see calls_out_to without PROG2. The strict test passes because it runs the bare regex, not the shielded block.

Impact: program-to-program calls are invisible to calls_out_to, the #3328 resolver and the #3333 file graph. The #3200 mainframe resolver reads CALL sites separately, so call_site_data and the 'call' edges are unaffected.

Fix shape: a quoted-literal exception for invocation verbs in the shield (a COBOL CALL literal is the callee name, as a JCL PGM= is), or run cobol's calls_out before the shield with the CALL-literal branch only. Needs a golden/rosetta check, because COBOL calls_out_to gains entries.

Activity

  1. added
    enhancement
    core-engine
    on Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    core-engineenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions