[PATCH] xfstests: fix buffer overflow in lstat64.c

Eric Sandeen sandeen at sandeen.net
Mon Nov 3 16:26:07 CST 2008


lstat64.c was putting an 11-byte string into a 10-byte buffer.

Signed-off-by: Eric Sandeen <sandeen at sandeen.net>
---

Index: xfs-cmds/xfstests/src/lstat64.c
===================================================================
--- xfs-cmds.orig/xfstests/src/lstat64.c
+++ xfs-cmds/xfstests/src/lstat64.c
@@ -57,7 +57,7 @@ int
 main(int argc, char **argv)
 {
 	struct stat64	sbuf;
-	char		mode[10];
+	char		mode[11];
 	int		i, c;
 	int		terse_flag = 0;
 




More information about the xfs mailing list