aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-03-06 14:10:23 +0000
committerCorinna Vinschen <corinna@vinschen.de>2013-03-06 14:10:23 +0000
commitbd142b93ae34b2bae13ba9de7f9185bd541712f5 (patch)
treeab994245b1e7890cbf298df6ef34b6cacfd3a098
parent0a42dbf12a41dc5b67538c10b7750936d8b4e6a0 (diff)
downloadnewlib-bd142b93ae34b2bae13ba9de7f9185bd541712f5.zip
newlib-bd142b93ae34b2bae13ba9de7f9185bd541712f5.tar.gz
newlib-bd142b93ae34b2bae13ba9de7f9185bd541712f5.tar.bz2
* mount.cc (fs_names): Add trailing NULL element to avoid potential
SEGV in format_proc_filesystems.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/mount.cc3
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 66b539c..b9c5a62 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-06 Corinna Vinschen <corinna@vinschen.de>
+
+ * mount.cc (fs_names): Add trailing NULL element to avoid potential
+ SEGV in format_proc_filesystems.
+
2013-03-01 Christopher Faylor <me.cygwin2013@cgf.cx>
* exceptions.cc (exception::handle): Eliminate buggy recursed variable;
diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc
index 6f0d39e..4ff4269 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 *