Commit 69d50db
shell: fix a memory corruption coverity issue
Added a condition to check if the size of the copied
memory is a positive number.
Fixes #58700
Fixes #58703
Signed-off-by: Jakub Rzeszutko <[email protected]>1 parent 4b5331b commit 69d50db
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
| |||
0 commit comments