Messages in this thread | | | Date | Thu, 26 Apr 2012 14:22:30 -0400 | From | Josef Bacik <> | Subject | Re: [PATCH] Btrfs: avoid buffer overrun in btrfs_printk |
| |
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@redhat.com>
Reviewed-by: Josef Bacik <josef@redhat.com
I just noticed this but could you send to linux-btrfs@vger.kernel.org from now on? Thanks,
Josef
| |