search for: tm_size

Displaying 1 result from an estimated 1 matches for "tm_size".

Did you mean: bm_size
2020 Feb 24
1
vfs fruit disk_free fails on tmsize overflow with macOS Time Machine
...it.c 2019-10-24 15:15:00.000000000 +0000 +++ source3/modules/vfs_fruit.c 2020-02-18 19:54:00.000000000 +0000 @@ -6971,18 +6971,7 @@ return true; } - if (bandsize > SIZE_MAX/nbands) { - DBG_ERR("tmsize overflow: bandsize [%zu] nbands [%zu]\n", - bandsize, nbands); - return false; - } - tm_size = bandsize * nbands; - - if (state->total_size + tm_size < state->total_size) { - DBG_ERR("tmsize overflow: bandsize [%zu] nbands [%zu]\n", - bandsize, nbands); - return false; - } + tm_size = (off_t)bandsize * (off_t)nbands; state->total_size += tm_size; and I have the bra...