Commit c5c9921
Fix CodeQL security issues (#7985)
This path fixes 7 issues raised by codeql:
- `dxcapi.use.h` - [SM01925] Uncontrolled process operation: Add
comment, so the scan can ignore this issue.
- `ProgramTest.cpp` - [SM01932] User-controlled data may not be null
terminated: Add comment, so the scan can ignore this issue.
- `DxbcConverter.cpp` - [SM01928] Comparison of narrow type with wide
type in loop condition: Change affected variable to be `unsigned`
instead of `BYTE`.
- `ExecutionTest.cpp` - [SM01733] Too few arguments to formatting
function: Remove an argument that didn't seem to be used.
- `DxbcUtil.cpp` - [SM01928] Comparison of narrow type with wide type in
loop condition: Cast the result of `+` operator back to BYTE, since it
was implicit being cast to an int.
- `DSAclean.py` - [SM03905] Inefficient regular expression: Script
doesn't seem to be used anymore, so it is being removed.
- `CaptureCmd` - [SM02167] Weak hashes : Script doesn't seem to be used
anymore, so it is being removed.
---------
Co-authored-by: Joao Saffran <[email protected]>1 parent c8a39c7 commit c5c9921
File tree
7 files changed
+14
-112
lines changed- include/dxc/Support
- projects/dxilconv/lib/DxbcConverter
- tools/clang
- unittests/HLSLExec
- utils
- unittests/Support
- utils
7 files changed
+14
-112
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
84 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6393 | 6393 | | |
6394 | 6394 | | |
6395 | 6395 | | |
6396 | | - | |
6397 | | - | |
| 6396 | + | |
| 6397 | + | |
6398 | 6398 | | |
6399 | 6399 | | |
6400 | 6400 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | | - | |
| 50 | + | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2451 | 2451 | | |
2452 | 2452 | | |
2453 | 2453 | | |
2454 | | - | |
| 2454 | + | |
2455 | 2455 | | |
2456 | 2456 | | |
2457 | 2457 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
| 316 | + | |
| 317 | + | |
317 | 318 | | |
318 | 319 | | |
319 | 320 | | |
| |||
This file was deleted.
0 commit comments