2024-04-18 14:47:07

by Theodore Ts'o

[permalink] [raw]
Subject: Re: [PATCH e2fsprogs] ext2fs: Fix -Walloc-size


On Tue, 07 Nov 2023 23:31:20 +0000, Sam James wrote:
> GCC 14 introduces a new -Walloc-size included in -Wextra which gives:
> ```
> lib/ext2fs/hashmap.c:37:36: warning: allocation of insufficient size ‘1’ for type ‘struct ext2fs_hashmap’ with size ‘20’ [-Walloc-size]
> ```
>
> The calloc prototype is:
> ```
> void *calloc(size_t nmemb, size_t size);
> ```
>
> [...]

Applied, thanks!

[1/1] ext2fs: Fix -Walloc-size
commit: aa11daba2081da28ec70c557eefd5039a99555a3

Best regards,
--
Theodore Ts'o <[email protected]>