Commit 9de9f03
authored
[SemaHLSL] Correct descriptor range overflow validation (#159475)
This pr corrects the validation behaviour to allow valid root signatures
of the form:
`DescriptorTable(CBV(b0, offset = 4294967294), CBV(b1))`
which will append a range onto the location of `UINT_MAX`, which is
valid.
Resolves: #159478.1 parent 4a9df48 commit 9de9f03
File tree
5 files changed
+28
-25
lines changed- clang
- lib/Sema
- test/SemaHLSL
- llvm
- include/llvm/Frontend/HLSL
- lib/Frontend/HLSL
5 files changed
+28
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1369 | 1369 | | |
1370 | 1370 | | |
1371 | 1371 | | |
1372 | | - | |
| 1372 | + | |
| 1373 | + | |
1373 | 1374 | | |
1374 | 1375 | | |
1375 | 1376 | | |
| |||
1386 | 1387 | | |
1387 | 1388 | | |
1388 | 1389 | | |
1389 | | - | |
1390 | | - | |
1391 | | - | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
1392 | 1393 | | |
1393 | | - | |
1394 | 1394 | | |
1395 | 1395 | | |
1396 | 1396 | | |
1397 | 1397 | | |
1398 | | - | |
1399 | | - | |
| 1398 | + | |
1400 | 1399 | | |
1401 | | - | |
1402 | | - | |
| 1400 | + | |
1403 | 1401 | | |
1404 | | - | |
1405 | 1402 | | |
1406 | | - | |
1407 | | - | |
1408 | | - | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
1409 | 1407 | | |
1410 | 1408 | | |
1411 | 1409 | | |
1412 | | - | |
1413 | | - | |
1414 | | - | |
| 1410 | + | |
| 1411 | + | |
1415 | 1412 | | |
1416 | 1413 | | |
1417 | 1414 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | 41 | | |
43 | | - | |
| 42 | + | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | 128 | | |
133 | 129 | | |
134 | 130 | | |
135 | 131 | | |
136 | | - | |
| 132 | + | |
137 | 133 | | |
138 | 134 | | |
139 | 135 | | |
140 | 136 | | |
141 | | - | |
| 137 | + | |
142 | 138 | | |
143 | 139 | | |
144 | 140 | | |
| |||
0 commit comments