mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-05 06:10:13 -05:00
Fix 32-bit integer truncation in block metadata allocations and file_block
This commit is contained in:
parent
527bd69129
commit
c7b8068e36
5 changed files with 85 additions and 11 deletions
|
|
@ -866,7 +866,7 @@ void file_copy(struct snapraid_file* src_file, struct snapraid_file* dest_file);
|
|||
*
|
||||
* Note that the block size if a runtime value.
|
||||
*/
|
||||
static inline struct snapraid_block* file_block(struct snapraid_file* file, size_t pos)
|
||||
static inline struct snapraid_block* file_block(struct snapraid_file* file, block_off_t pos)
|
||||
{
|
||||
unsigned char* ptr = (unsigned char*)file->blockvec;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue