Skip to content
Commit f07c9a79 authored by Jim Meyering's avatar Jim Meyering Committed by Josef Bacik
Browse files

Btrfs: avoid buffer overrun in btrfs_printk



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: default avatarJim Meyering <meyering@redhat.com>
parent 2eec6c81
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment