mirror of
https://github.com/AltraMayor/f3.git
synced 2025-09-08 14:50:13 -04:00
Merge pull request #146 from jowagner/patch-2
Correct overflow protection
This commit is contained in:
commit
10cc50fd19
@ -690,7 +690,7 @@ uint64_t probe_device_max_blocks(struct device *dev)
|
||||
/* Make sure that there is no overflow in the formula below.
|
||||
* The number 10 is arbitrary here, that is, it's not tight.
|
||||
*/
|
||||
assert(MAX_N_BLOCK_ORDER < sizeof(int) - 10);
|
||||
assert(MAX_N_BLOCK_ORDER < 8*sizeof(int) - 10);
|
||||
|
||||
return
|
||||
/* find_cache_size() */
|
||||
|
Loading…
x
Reference in New Issue
Block a user