xfs
[Top] [All Lists]

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

To: xfs mailing list <xfs@xxxxxxxxxxx>
Subject: [PATCH] xfstests: fix buffer overflow in lstat64.c
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Mon, 03 Nov 2008 16:26:07 -0600
User-agent: Thunderbird 2.0.0.16 (X11/20080723)
lstat64.c was putting an 11-byte string into a 10-byte buffer.

Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxxx>
---

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;
 


<Prev in Thread] Current Thread [Next in Thread>