Commit 20263be
authored
fixup: smart: uninitialized buffer on mount(2) (#9636)
The `struct stat` object used inside mount(2) is uninitialized, which
can lead to undefined behavior during running
Changes:
- Set zero to buffer before calling to stat()
Signed-off-by: Shell <[email protected]>1 parent ddf42ba commit 20263be
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5767 | 5767 | | |
5768 | 5768 | | |
5769 | 5769 | | |
| 5770 | + | |
5770 | 5771 | | |
5771 | 5772 | | |
5772 | 5773 | | |
| |||
5805 | 5806 | | |
5806 | 5807 | | |
5807 | 5808 | | |
5808 | | - | |
5809 | | - | |
5810 | 5809 | | |
5811 | 5810 | | |
5812 | 5811 | | |
| |||
0 commit comments