Commit 35dddde
authored
Fix sanitizers issues (#4050)
ubsan detected
'lib/Dialect/TorchConversion/Transforms/UnpackQuantTensor.cpp:109:21:
runtime error: left shift of negative value -16' and asan detected
`memcpy` with nullptr when we passed and empty vector with `.data() ==
nullptr` to mlirOperationStateAddResults.
Detected using #40461 parent ac944a7 commit 35dddde
File tree
2 files changed
+5
-1
lines changed- lib/Dialect/TorchConversion/Transforms
- projects/jit_ir_common/csrc/jit_ir_importer
2 files changed
+5
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| 79 | + | |
| 80 | + | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
| |||
0 commit comments