Gitweb:
http://git.fedorahosted.org/git/?p=gfs2-utils.git;a=commitdiff;h=38730885...
Commit: 387308852e075432b77cf04217d3a47c3f6e07ca
Parent: 6f36886e36c1b0b3afe01bd6fe8cf49545eb6e43
Author: Bob Peterson <rpeterso(a)redhat.com>
AuthorDate: Fri Feb 1 21:28:46 2013 -0700
Committer: Bob Peterson <rpeterso(a)redhat.com>
CommitterDate: Mon Jul 22 08:32:38 2013 -0500
gfs2_edit: fix a segfault with file names > 255 bytes
This patch fixes a segfault in gfs2_edit caused by trying to print
file names longer than 255 bytes.
---
gfs2/edit/gfs2hex.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gfs2/edit/gfs2hex.c b/gfs2/edit/gfs2hex.c
index 6979cd9..cc0ceb6 100644
--- a/gfs2/edit/gfs2hex.c
+++ b/gfs2/edit/gfs2hex.c
@@ -122,7 +122,7 @@ void eol(int col) /* end of line */
void __attribute__((format (printf, 1, 2))) print_gfs2(const char *fmt, ...)
{
va_list args;
- char string[NAME_MAX];
+ char string[PATH_MAX];
memset(string, 0, sizeof(string));
va_start(args, fmt);