Skip to content

Add input validation to Swift protocol layer#3392

Closed
Jens-G wants to merge 2 commits intoapache:masterfrom
Jens-G:p7-switft-validation
Closed

Add input validation to Swift protocol layer#3392
Jens-G wants to merge 2 commits intoapache:masterfrom
Jens-G:p7-switft-validation

Conversation

@Jens-G
Copy link
Copy Markdown
Member

@Jens-G Jens-G commented Apr 11, 2026

Client: swift

  • Add recursion depth limit (64) and negative size checks to skip() in TProtocol for map, set, and list types
  • Add range validation for fieldId before UInt8 cast in TCompactProtocol.readFieldBegin()

Client: swift

- Add recursion depth limit (64) and negative size checks to
  skip() in TProtocol for map, set, and list types
- Add range validation for fieldId before UInt8 cast in
  TCompactProtocol.readFieldBegin()

(07, 08)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mergeable mergeable bot added the swift label Apr 11, 2026
@@ -314,6 +314,10 @@ public class TCompactProtocol: TProtocol {
}

// push the new field onto the field stack so we can keep the deltas going
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this comment belongs to the below line

Client: swift

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Jens-G Jens-G closed this in 158edaa Apr 13, 2026
@Jens-G Jens-G deleted the p7-switft-validation branch April 13, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants