Commit 158edaa
committed
Add input validation to Swift protocol layer
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>
This closes #33921 parent 73fbcfb commit 158edaa
2 files changed
Lines changed: 33 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
316 | 320 | | |
317 | 321 | | |
318 | 322 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
136 | 144 | | |
137 | 145 | | |
138 | 146 | | |
| |||
142 | 150 | | |
143 | 151 | | |
144 | 152 | | |
145 | | - | |
| 153 | + | |
146 | 154 | | |
147 | 155 | | |
148 | 156 | | |
149 | 157 | | |
150 | 158 | | |
151 | 159 | | |
152 | 160 | | |
153 | | - | |
| 161 | + | |
154 | 162 | | |
155 | 163 | | |
156 | 164 | | |
157 | | - | |
158 | | - | |
| 165 | + | |
| 166 | + | |
159 | 167 | | |
160 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
161 | 172 | | |
162 | | - | |
163 | | - | |
| 173 | + | |
| 174 | + | |
164 | 175 | | |
165 | 176 | | |
166 | | - | |
167 | | - | |
| 177 | + | |
| 178 | + | |
168 | 179 | | |
169 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
170 | 184 | | |
171 | | - | |
| 185 | + | |
172 | 186 | | |
173 | 187 | | |
174 | | - | |
| 188 | + | |
175 | 189 | | |
176 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
177 | 194 | | |
178 | | - | |
| 195 | + | |
179 | 196 | | |
180 | 197 | | |
181 | | - | |
| 198 | + | |
182 | 199 | | |
183 | 200 | | |
184 | 201 | | |
| |||
0 commit comments