Skip to content

det: XCTL with a SET ADDRESS OF / pointer alias of a LINKed program's DFHCOMMAREA is not refused (X39 sibling) #4957

Closed

Description

@squid-protocol

Sibling of #4816 (PR #4955), class: COMMAREA addressability across LINK/XCTL/RETURN chains.

Gap. PR #4955's det check (det/cics.py in_dfhcommarea) follows only the record the XCTL COMMAREA operand names. A LINKed program that takes the DFHCOMMAREA's address (SET ADDRESS OF X TO ADDRESS OF DFHCOMMAREA, a POINTER, a BASED/LINKAGE alias) and XCTLs with the alias passes the caller's storage without being refused (register X39), so the target runs on a copy silently.

IBM. As X39: copy vs caller's storage on XCTL is not documented. Never assumed.

Done when. An XCTL whose COMMAREA is an alias of a LINKed program's DFHCOMMAREA is refused by name (or the alias forms are refused at translation), tests per alias form (SET ADDRESS OF, POINTER, LINKAGE record re-based).

member status
det LINKed program XCTLs its DFHCOMMAREA (whole / field) refused, #4955
model-port LINKed program XCTLs its DTO #4956
SET ADDRESS OF / pointer alias of DFHCOMMAREA, then XCTL this issue

Siblings: #4816, #4956

Activity

  1. added
    bug
    legacy-modernization
    on Oct 12, 2026
  2. squid-protocol commented on Oct 13, 2026

    @squid-protocol
    OwnerAuthor

    Acceptance met by PR #5021 (merged): an XCTL of any LINKAGE 01 record (the re-based LINKAGE form, whole or field) is now refused by name under X39, and the SET ADDRESS OF / POINTER alias forms are refused at translation (the generic "SET ADDRESS OF (pointers)" hole), each pinned by a test in tests/cobol_mainframe/test_link_xctl_alias_4957.py. That is the "or the alias forms are refused at translation" branch of Done-when. Closing; if those pointer forms are translated later, they must take the same X39 check.

  3. added
    scope:sweep
    era:2
    on Oct 16, 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

    bugera:2legacy-modernizationpriority: mediumscope:sweep

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions