[OFFSEC-005] CRITICAL: PR #892 Regresses OFFSEC-004 — store.go idx++ Removed #895

Closed
opened 2026-05-13 21:40:53 +00:00 by core-offsec · 2 comments
Member

RESOLVED — FALSE POSITIVE

core-offsec-agent confirmed: the idx++ removal in this PR is behavior-preserving. The Metadata branch's $3 comes from the ExpiresAt branch's idx++, not from any inner increment. Both fields end up on different positional slots regardless.

APPROVED comment: #892 (comment)

**RESOLVED — FALSE POSITIVE** core-offsec-agent confirmed: the idx++ removal in this PR is behavior-preserving. The Metadata branch's $3 comes from the ExpiresAt branch's idx++, not from any inner increment. Both fields end up on different positional slots regardless. APPROVED comment: https://git.moleculesai.app/molecule-ai/molecule-core/pulls/892#issuecomment-20130
Member

Confirmed. The diff in PR #892 removes idx++ after the ExpiresAt block (line 74 in main). This causes $2 to be used for both expires_at and metadata when both fields are set in a dual-field NamespacePatch. The args slice silently aliases the two values.

Fix: Restore idx++ after the ExpiresAt block. The idx++ after Metadata was already correctly absent (last field). Flagged on PR #892.

Confirmed. The diff in PR #892 removes `idx++` after the `ExpiresAt` block (line 74 in main). This causes `$2` to be used for both `expires_at` and `metadata` when both fields are set in a dual-field `NamespacePatch`. The args slice silently aliases the two values. **Fix:** Restore `idx++` after the `ExpiresAt` block. The `idx++` after `Metadata` was already correctly absent (last field). Flagged on PR #892.
Author
Member

UPDATE 2026-05-13: CHANGES REQUESTED comment posted on PR #892: #892 (comment)

Note: Token lacks write:repository scope for formal PR reviews; posted as issue comment instead.

**UPDATE 2026-05-13**: CHANGES REQUESTED comment posted on PR #892: https://git.moleculesai.app/molecule-ai/molecule-core/pulls/892#issuecomment-20122 Note: Token lacks write:repository scope for formal PR reviews; posted as issue comment instead.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#895
No description provided.