Repository navigation
Commit d7be289
Fix division by zero in reduce_util.h grain size calculation (pytorch#16462)
Add zero check for reduction_size before dividing to calculate
grain_size,
preventing crash when fuzzer triggers edge case with empty reduction
dimension.
### Test plan
[PLEASE REMOVE] How did you test this PR? Please write down any manual
commands you used and note down tests that you have written if
applicable.
---------
Co-authored-by: Github Executorch <github_executorch@arm.com>1 parent d3b4a24 commit d7be289
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
817 | | - | |
818 | | - | |
819 | | - | |
820 | | - | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
821 | 823 | | |
822 | 824 | | |
823 | 825 | | |
| |||
0 commit comments