summaryrefslogtreecommitdiffstats
path: root/disk-utils
diff options
context:
space:
mode:
authorKarel Zak2012-07-09 22:26:27 +0200
committerKarel Zak2012-07-09 22:26:27 +0200
commit657d9adb71ed50275b1ed2a0d4e966032db5ba97 (patch)
tree071fa200585354a29f51d1e0cf51baa5b4b9ba4e /disk-utils
parentutmpdump: white space fix (diff)
downloadkernel-qcow2-util-linux-657d9adb71ed50275b1ed2a0d4e966032db5ba97.tar.gz
kernel-qcow2-util-linux-657d9adb71ed50275b1ed2a0d4e966032db5ba97.tar.xz
kernel-qcow2-util-linux-657d9adb71ed50275b1ed2a0d4e966032db5ba97.zip
fix buffer overrun in some calls to sscanf
Reported-by: Sergei Antonov <saproj@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils')
-rw-r--r--disk-utils/blockdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/blockdev.c b/disk-utils/blockdev.c
index ba06ad035..a9e8833ff 100644
--- a/disk-utils/blockdev.c
+++ b/disk-utils/blockdev.c
@@ -411,7 +411,7 @@ static void report_all_devices(void)
{
FILE *procpt;
char line[200];
- char ptname[200];
+ char ptname[200 + 1];
char device[210];
int ma, mi, sz;