Repository navigation
cics stub: WEB SEND / CONVERSE accept a length that fits the GETMAIN block the pointer was SET onto (Part of #6839) - #7327
Merged
Conversation
…block the pointer was SET onto (Part of #6839) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #6839 (slice for the get-segmented scenario; the scenario follows in a later PR).
What
The COBOL oracle stub refused
WEB SENDwhen FROMLENGTH exceeded the declared FROM record ("WEB SEND length beyond its area",ggcics_web.c:526). IBM reads FROM from the address for FROMLENGTH bytes, so a record whose pointer was SET onto a larger GETMAIN block (ZECS001 GETSEG01:CACHE-MESSAGE X(32000)over a 64000 block, 32004 bytes sent) is valid. The stub now bounds the length by the declared area OR the live task-storage block holding the address (blk_roominggcics.c,web_areainggcics_web.c). Nothing loosened: a length past the block's end, a record on no block, and a FREEMAINed block are still refused.Class / Sibling gaps
Class: a WEB command's input argument whose length is checked against its declared area, when a pointer SET onto a larger block makes that check wrong (IBM reads from the address). Covered here, same mechanism: WEB SEND FROM, WEB CONVERSE FROM / PATH / QUERY. Tests: block start, block end, past block end, mid-block pointer (rest of the block only), no block, freed block, for SEND and CONVERSE.
Sibling gaps: WEB PARSE URL (
ggcics_web.c~l.338, URL input) has the same shape but its ownn >= WEB_TXTbound, so it needs a separate decision; WEB EXTRACT / READ HTTPHEADER / WRITE HTTPHEADER name and value checks are other mechanisms (outputs, or tiny names). The get-segmented scenario (closes 1144:true, 1194:false, 1197:true) is the next slice.Gates
pr_gates --fast9/9,--ratchets9/9, test_cics_family_split / test_cics_runtimes / test_equivalence_cics pass, time ratchet clean. No golden re-bless: stub-only, no engine code. Hand-written files: 3.Cross-repo: none.
Co-Authored-By: Claude Sonnet 5.5 [email protected]
🤖 Generated with Claude Code