Song Liu <songliubraving@xxxxxx> writes: > struct mdp_superblock_1.set_name is 32B long, but struct mdinfo.name > is 33B long. So we need strncpy instead strcpy to avoid buffer > overflow. > > Signed-off-by: Song Liu <songliubraving@xxxxxx> > --- > super1.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Applied thanks! Note there is at least one place with a str operation hardcoding the length of set_name to 32. Would you mind fixing that too? Cheers, Jes -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html