Re: [PATCH] Btrfs: avoid buffer overrun in btrfs_printk

From: Josef Bacik
Date: Thu Apr 26 2012 - 14:22:31 EST


On Thu, Apr 26, 2012 at 06:35:12PM +0200, Jim Meyering wrote:
>
> The buffer read-overrun would be triggered by a printk format
> starting with <N>, where N is a single digit. NUL-terminate
> after strncpy. Use memcpy, not strncpy, since we know the
> string we're copying fits in the destination buffer and
> contains no NUL byte.
>
> Signed-off-by: Jim Meyering <meyering@xxxxxxxxxx>

Reviewed-by: Josef Bacik <josef@xxxxxxxxxx

I just noticed this but could you send to linux-btrfs@xxxxxxxxxxxxxxx from now
on? Thanks,

Josef
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/