| 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> |
|---|---|---|
| ||
| Previous by Date: | RE: Stale XFS mount for Kernel 2.6.25.14, Ngo, Andrew |
|---|---|
| Next by Date: | [PATCH] xfstests: fix dbtest build, Eric Sandeen |
| Previous by Thread: | RE: Stale XFS mount for Kernel 2.6.25.14, Ngo, Andrew |
| Next by Thread: | Re: [PATCH] xfstests: fix buffer overflow in lstat64.c, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |