lkml.org 
[lkml]   [2012]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2012-04-26 20:25    [W:0.045 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site