The path field in c.devices[i] is a pointer and is normally filled
in using strdup. This makes it invalid to copy MAX_PATH_LEN bytes
from it because the string may be shorter than that. Therefore,
fix the code to use strncpy to copy the string instead.
Signed-off-by: Peter Collingbourne
---
mkfs
Hi Bart,
On Thu, Apr 21, 2022 at 03:18:15PM -0700, Bart Van Assche wrote:
> +static_assert(sizeof(struct f2fs_dentry_block) == 4096, "");
I noticed that this static_assert fails when PAGE_SIZE is defined to
a value other than 4096.
I have to admit to being unfamiliar with f2fs. Is this an on-dis
On Thu, Jun 23, 2022 at 11:12 AM Bart Van Assche wrote:
>
> Fix the struct f2fs_dentry_block definition on systems for which
> PAGE_SIZE != 4096. This patch does not change the struct f2fs_dentry_block
> definition if PAGE_SIZE == 4096.
>
> Cc: Peter Collingbourne
> Reported-by: Peter Collingbour