Commit 2c7efbc
committed
web: cap selectable_layers parsing at kMaxVisibilityEntries
parseFromJson already bounded visible_layers and visible_chiplets so a
malformed or oversized websocket payload can't force unbounded set
inserts, but selectable_layers was iterating the whole input array.
Apply the same std::min(arr.size(), kMaxVisibilityEntries) cap.
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>1 parent 4a21a77 commit 2c7efbc
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
219 | 221 | | |
220 | 222 | | |
221 | 223 | | |
| |||
0 commit comments