Repository navigation
MQ runtime: a put whose BufferLength passes the caller's field no longer throws in the event (Part of #6072) - #6789
Conversation
…ger throws in the event (Part of #6072) putEvent hex-formatted buffer[at, at+bl) and threw IndexOutOfBounds when the COBOL BufferLength (201) exceeded the 200-byte field, while put() zero-padded the stored message. One bytesAt helper now serves both, so event and stored message agree. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
PR #6789 @ 35e6621: 1 failed check(s) == ground-truth part 2/2 (failure) -- real |
…e test failed on #6789's helper) (Part of #6072) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (af9e8b7) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
…it exit, net 66/71 (Part of #6072) (#6791) * MQ runtime: a put whose BufferLength passes the caller's field no longer throws in the event (Part of #6072) putEvent hex-formatted buffer[at, at+bl) and threw IndexOutOfBounds when the COBOL BufferLength (201) exceeded the 200-byte field, while put() zero-padded the stored message. One bytesAt helper now serves both, so event and stored message agree. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * ladder(carddemo-copaua0c): 501-request scenario takes the request-limit exit (WIP, Part of #6072) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * ladder(carddemo-copaua0c): refresh coverage ledger and evidence record (Part of #6072) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * cobolrt rules: list QueueManager.bytesAt as MQ plumbing (the catalogue test failed on #6789's helper) (Part of #6072) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Summary
QueueManager.putEventthrewIndexOutOfBoundswhen MQPUT/MQPUT1 BufferLength exceeded the caller's field array (COPAUA0C 501-request scenario: range 0..201 of a 200-byte buffer).put()zero-padded the same read, so the event and the stored message could disagree. A singlebytesAt(Ref, len)helper (zero-pads past the end of the field) now feeds both.Assumption: where BufferLength runs past the field, IBM/GnuCOBOL read the adjacent storage; the Java runtime cannot see it and reads zeros. Deterministic; the 501-request scenario should pass an exact-size buffer.
Class / Sibling gaps
Class: a
Ref(b, at)read forlenbytes withat + len > b.lengthin QueueManager. Handled here: MQPUT and MQPUT1 event data and stored message (BufferLength negative, 0, short, equal, +1, far past; testtest_a_put_longer_than_the_callers_field_stores_and_reports_the_same_bytes, fails without the fix). Sibling gaps: MQGET copying intobuffer/MQMD when BufferLength exceeds the caller's array (arraycopy would throw; no scenario reaches it, not changed); a short MQMD passed to put (field writes throw); the C oracle (ggmq.c) reads adjacent memory for an overlong length, so that class is Java-only tested, not byte-for-byte against C.Remaining slices
The 501-request COPAUA0C scenario itself (net 339:true), then the oracle_assumptions.md note for the zero-pad assumption (not added; stated in code comment and here).
Checklist: partial [c:3d9f3444] -- COPAUA0C 339:true still needs the 501-request scenario (this PR is the runtime fix only)
Gates
pr_gates --fast 9/9; --ratchets 9 pass (0 skipped); det_port check 180/180 ports unchanged; test_det_mq.py 65 passed (JDK 17). No golden bless (no parsing change).
🤖 Generated with Claude Code