From bd142b93ae34b2bae13ba9de7f9185bd541712f5 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 6 Mar 2013 14:10:23 +0000 Subject: [PATCH] * mount.cc (fs_names): Add trailing NULL element to avoid potential SEGV in format_proc_filesystems. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/mount.cc | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 66b539c7b..b9c5a62a7 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2013-03-06 Corinna Vinschen + + * mount.cc (fs_names): Add trailing NULL element to avoid potential + SEGV in format_proc_filesystems. + 2013-03-01 Christopher Faylor * exceptions.cc (exception::handle): Eliminate buggy recursed variable; diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc index 6f0d39ec6..4ff42693d 100644 --- a/winsup/cygwin/mount.cc +++ b/winsup/cygwin/mount.cc @@ -1591,7 +1591,8 @@ fs_names_t fs_names[] = { { "mvfs", false }, { "cifs", false }, { "nwfs", false }, - { "ncfsd", false } + { "ncfsd", false }, + { NULL, false } }; static mntent * -- 2.43.5