Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys terminate snprintb 'new' format strings correctly.
details: https://anonhg.NetBSD.org/src/rev/bc9d2a1fe6ec
branches: trunk
changeset: 552808:bc9d2a1fe6ec
user: yamt <yamt%NetBSD.org@localhost>
date: Fri Oct 03 16:34:31 2003 +0000
description:
terminate snprintb 'new' format strings correctly.
(fixes overrun in mount_*)
diffstat:
sys/fs/cd9660/cd9660_mount.h | 4 ++--
sys/fs/filecorefs/filecore_mount.h | 4 ++--
sys/fs/msdosfs/msdosfsmount.h | 4 ++--
sys/fs/ntfs/ntfsmount.h | 4 ++--
sys/fs/union/union.h | 4 ++--
sys/miscfs/procfs/procfs.h | 4 ++--
sys/nfs/nfsmount.h | 4 ++--
7 files changed, 14 insertions(+), 14 deletions(-)
diffs (117 lines):
diff -r 06b2f9a5bcfe -r bc9d2a1fe6ec sys/fs/cd9660/cd9660_mount.h
--- a/sys/fs/cd9660/cd9660_mount.h Fri Oct 03 15:42:22 2003 +0000
+++ b/sys/fs/cd9660/cd9660_mount.h Fri Oct 03 16:34:31 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cd9660_mount.h,v 1.2 2003/08/07 16:31:34 agc Exp $ */
+/* $NetBSD: cd9660_mount.h,v 1.3 2003/10/03 16:34:31 yamt Exp $ */
/*
* Copyright (c) 1995
* The Regents of the University of California. All rights reserved.
@@ -52,4 +52,4 @@
#define ISOFSMNT_BITS "\177\20" \
"b\00norrip\0b\01gens\0b\02extatt\0b\03nojoliet\0" \
- "b\04nocasetrans\0b\05rrcaseins"
+ "b\04nocasetrans\0b\05rrcaseins\0"
diff -r 06b2f9a5bcfe -r bc9d2a1fe6ec sys/fs/filecorefs/filecore_mount.h
--- a/sys/fs/filecorefs/filecore_mount.h Fri Oct 03 15:42:22 2003 +0000
+++ b/sys/fs/filecorefs/filecore_mount.h Fri Oct 03 16:34:31 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: filecore_mount.h,v 1.2 2003/08/07 16:31:37 agc Exp $ */
+/* $NetBSD: filecore_mount.h,v 1.3 2003/10/03 16:34:31 yamt Exp $ */
/*
* Copyright (c) 1995 The Regents of the University of California.
@@ -85,4 +85,4 @@
#define FILECOREMNT_BITS "\177\20" \
"b\00root\0b\01ownaccess\0b\02allaccess\0b\03ownread\0" \
- "b\04useuid\0b\05filetype"
+ "b\04useuid\0b\05filetype\0"
diff -r 06b2f9a5bcfe -r bc9d2a1fe6ec sys/fs/msdosfs/msdosfsmount.h
--- a/sys/fs/msdosfs/msdosfsmount.h Fri Oct 03 15:42:22 2003 +0000
+++ b/sys/fs/msdosfs/msdosfsmount.h Fri Oct 03 16:34:31 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msdosfsmount.h,v 1.4 2003/09/07 22:09:11 itojun Exp $ */
+/* $NetBSD: msdosfsmount.h,v 1.5 2003/10/03 16:34:31 yamt Exp $ */
/*-
* Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -85,7 +85,7 @@
#define MSDOSFSMNT_BITS "\177\20" \
"b\00shortname\0b\01longname\0b\02nowin95\0b\03gemdosfs\0b\04mntversioned\0" \
- "b\037ronly\0b\036waitonfat\0b\035fatmirror"
+ "b\037ronly\0b\036waitonfat\0b\035fatmirror\0"
#ifdef _KERNEL
#include <sys/mallocvar.h>
diff -r 06b2f9a5bcfe -r bc9d2a1fe6ec sys/fs/ntfs/ntfsmount.h
--- a/sys/fs/ntfs/ntfsmount.h Fri Oct 03 15:42:22 2003 +0000
+++ b/sys/fs/ntfs/ntfsmount.h Fri Oct 03 16:34:31 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ntfsmount.h,v 1.1 2002/12/23 17:38:34 jdolecek Exp $ */
+/* $NetBSD: ntfsmount.h,v 1.2 2003/10/03 16:34:31 yamt Exp $ */
/*-
* Copyright (c) 1998, 1999 Semen Ustimenko
@@ -41,4 +41,4 @@
};
#define NTFS_MFLAG_BITS "\177\20" \
- "b\00caseins\0b\01allnames"
+ "b\00caseins\0b\01allnames\0"
diff -r 06b2f9a5bcfe -r bc9d2a1fe6ec sys/fs/union/union.h
--- a/sys/fs/union/union.h Fri Oct 03 15:42:22 2003 +0000
+++ b/sys/fs/union/union.h Fri Oct 03 16:34:31 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: union.h,v 1.8 2003/08/07 16:31:40 agc Exp $ */
+/* $NetBSD: union.h,v 1.9 2003/10/03 16:34:31 yamt Exp $ */
/*
* Copyright (c) 1994 The Regents of the University of California.
@@ -83,7 +83,7 @@
#define UNMNT_OPMASK 0x0003
#define UNMNT_BITS "\177\20" \
- "b\00above\0b\01below\0b\02replace"
+ "b\00above\0b\01below\0b\02replace\0"
struct union_mount {
struct vnode *um_uppervp;
diff -r 06b2f9a5bcfe -r bc9d2a1fe6ec sys/miscfs/procfs/procfs.h
--- a/sys/miscfs/procfs/procfs.h Fri Oct 03 15:42:22 2003 +0000
+++ b/sys/miscfs/procfs/procfs.h Fri Oct 03 16:34:31 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: procfs.h,v 1.50 2003/09/27 15:32:50 mycroft Exp $ */
+/* $NetBSD: procfs.h,v 1.51 2003/10/03 16:34:31 yamt Exp $ */
/*
* Copyright (c) 1993
@@ -132,7 +132,7 @@
#define PROCFSMNT_LINUXCOMPAT 0x01
#define PROCFSMNT_BITS "\177\20" \
- "b\00linuxcompat"
+ "b\00linuxcompat\0"
/*
* Kernel stuff follows
diff -r 06b2f9a5bcfe -r bc9d2a1fe6ec sys/nfs/nfsmount.h
--- a/sys/nfs/nfsmount.h Fri Oct 03 15:42:22 2003 +0000
+++ b/sys/nfs/nfsmount.h Fri Oct 03 16:34:31 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nfsmount.h,v 1.28 2003/08/07 16:33:56 agc Exp $ */
+/* $NetBSD: nfsmount.h,v 1.29 2003/10/03 16:34:31 yamt Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -91,7 +91,7 @@
"b\04retrans\0b\05maxgrps\0b\06intr\0b\07noconn\0" \
"b\10nqnfs\0b\11nfsv3\0b\12kerb\0b\13dumbtimr\0" \
"b\14leaseterm\0b\15readahead\0b\16deadthresh\0b\17resvport\0" \
- "b\20rdirplus\0b\21readdirsize\0b\22xlatecookie"
+ "b\20rdirplus\0b\21readdirsize\0b\22xlatecookie\0"
/*
* NFS internal flags (nm_iflag) */
Home |
Main Index |
Thread Index |
Old Index