Commit c13a97e
committed
Fix comparison between unsigned subtraction and the value 0
Fixes a false positive critical security bug revealed by codeql in code-scanning/30.
Since it is established before this check that the size does not excede the the free_space, the
check is changed to make sure `free_space - size` does not result in 0 free_space, else `should_gc`
should be true.
Signed-off-by: Winford <winford@object.stream>1 parent 174fe85 commit c13a97e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
0 commit comments