Commit 7d2fe33
committed
fix(workflows): keep validating literal entries of an oversized selector value
Review round 2.
The length cap skipped the whole field, so an oversized list of plain literal ids
lost validation it previously had. Literals never needed tokenization, so the cap
was broader than the cost it was there to bound.
It now gives up only the reference-aware split: past the cap the value is split
plainly, and its entries are classified and validated as usual, since they are
short enough that the tokenizer's per-candidate cost does not apply (1MB of
literal ids across 30000 entries measures ~9ms). Only an individual entry past
the cap is skipped, where there is no cheap way to tell a literal from a dynamic
binding.1 parent 3ee8395 commit 7d2fe33
2 files changed
Lines changed: 43 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1304 | 1304 | | |
1305 | 1305 | | |
1306 | 1306 | | |
1307 | | - | |
1308 | | - | |
1309 | | - | |
| 1307 | + | |
1310 | 1308 | | |
1311 | 1309 | | |
1312 | 1310 | | |
| |||
1324 | 1322 | | |
1325 | 1323 | | |
1326 | 1324 | | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
1327 | 1347 | | |
1328 | 1348 | | |
1329 | 1349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1083 | 1083 | | |
1084 | 1084 | | |
1085 | 1085 | | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
1089 | | - | |
1090 | | - | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
1091 | 1093 | | |
1092 | 1094 | | |
1093 | 1095 | | |
| |||
1144 | 1146 | | |
1145 | 1147 | | |
1146 | 1148 | | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
1150 | 1152 | | |
1151 | 1153 | | |
1152 | 1154 | | |
1153 | 1155 | | |
1154 | | - | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
1155 | 1162 | | |
1156 | 1163 | | |
1157 | 1164 | | |
1158 | 1165 | | |
1159 | 1166 | | |
1160 | 1167 | | |
1161 | 1168 | | |
1162 | | - | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
1163 | 1172 | | |
1164 | 1173 | | |
1165 | | - | |
| 1174 | + | |
1166 | 1175 | | |
1167 | 1176 | | |
1168 | 1177 | | |
| |||
0 commit comments