Commit 12e9a0b
Fix stack buffer overflow in get_view_as_real_copy_out_target_size (#15718)
Summary: Check that self.dim() is smaller than kTensorDimensionLimit,
otherwise we may write past the end of the out tensor.
Differential Revision: D86356264
Co-authored-by: lucylq <[email protected]>1 parent 97b7116 commit 12e9a0b
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
44 | 52 | | |
45 | 53 | | |
46 | 54 | | |
| |||
0 commit comments