Change the BLOCK_HASH_SIZE type to avoid potential overflow

This commit is contained in:
Andrea Mazzoleni 2026-05-03 22:29:11 +02:00
parent 6b9459346a
commit fd77444254
7 changed files with 13 additions and 12 deletions

View file

@ -11,7 +11,7 @@
/****************************************************************************/
/* snapraid */
int BLOCK_HASH_SIZE = HASH_MAX;
size_t BLOCK_HASH_SIZE = HASH_MAX;
struct snapraid_content* content_alloc(const char* path, uint64_t dev)
{