From: Karel Zak Date: Tue, 4 Aug 2015 09:15:53 +0000 (+0200) Subject: fsck.minix: be more paranoid with block buffers [coverity scan] X-Git-Tag: v2.27-rc2~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e9d849b8d31987c960c0f08f08ebcd781b3a609;p=thirdparty%2Futil-linux.git fsck.minix: be more paranoid with block buffers [coverity scan] Signed-off-by: Karel Zak --- diff --git a/disk-utils/fsck.minix.c b/disk-utils/fsck.minix.c index f73ac4ae2c..13ca7ca053 100644 --- a/disk-utils/fsck.minix.c +++ b/disk-utils/fsck.minix.c @@ -930,7 +930,7 @@ check_zones2(unsigned int i) { static void check_file(struct minix_inode *dir, unsigned int offset) { - static char blk[MINIX_BLOCK_SIZE]; + static char blk[MINIX_BLOCK_SIZE + 2]; struct minix_inode *inode; unsigned int ino; char *name; @@ -1002,7 +1002,7 @@ check_file(struct minix_inode *dir, unsigned int offset) { static void check_file2(struct minix2_inode *dir, unsigned int offset) { - static char blk[MINIX_BLOCK_SIZE]; + static char blk[MINIX_BLOCK_SIZE + 4]; struct minix2_inode *inode; ino_t ino; char *name;