[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120426182230.GA1890@localhost.localdomain>
Date: Thu, 26 Apr 2012 14:22:30 -0400
From: Josef Bacik <josef@...hat.com>
To: Jim Meyering <jim@...ering.net>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Josef Bacik <josef@...hat.com>
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@...hat.com>
Reviewed-by: Josef Bacik <josef@...hat.com
I just noticed this but could you send to linux-btrfs@...r.kernel.org from now
on? Thanks,
Josef
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists