openafs/src/vol
Jeffrey Altman 21ca232974 jbeuhler-flexelint-fun-with-printf-20031128
This patch addresses a number of problems with printf-like functions.

Most of them are %x formats applied to pointers (which could be a
problem depending on the architecture I would assume).  There is a
%p format for pointers on many machines but I don't know if it
applies to all supported OpenAFS platforms so I didn't go that route.

There is a buffer overflow fix to ktime.c

There are a couple places where incorrect format characters were used.

One call had two arguments swapped.

Other fixes include the use of PrintInode() and %s formats for
printing inode numbers.  The code was inconsistent in this regard -- sometimes
PrintInode() was used, sometimes it was side-stepped.

There is one place where a local shadowed another variable, so I renamed
the local.

The last segment points out that an fdset need not be anything printable
with an integer format.
--
Joe Buehler

Comments - The fdset comment relates to a WinSock only file on which
the size is a pointer to int.  Modified the source to use a %p instead
of %x as it is supported on Windows.

Added an assert(p != NULL) to src/rx/rx_packet.c
2003-11-29 21:37:50 +00:00
..
test patch-from-shadow-to-jaltman-bkbox-20031120 2003-11-21 07:59:35 +00:00
.cvsignore cvsignore-updates-kolya-20011005 2001-10-05 21:41:52 +00:00
clone.c large-file-support-20030808 2003-08-08 21:40:42 +00:00
common.c reindent-20030715 2003-07-16 00:28:24 +00:00
devname.c reindent-20030715 2003-07-16 00:28:24 +00:00
fs_conv_411.c reindent-again-20030808 2003-08-08 22:54:30 +00:00
fssync.c threaded-volserver-progress-20031114 2003-11-15 04:59:08 +00:00
fssync.h reindent-20030715 2003-07-16 00:28:24 +00:00
fstab.c macos103-20031024 2003-10-24 07:25:58 +00:00
gi.c reindent-20030715 2003-07-16 00:28:24 +00:00
ihandle.c joe-beuhler-patches-20031122 2003-11-23 04:52:52 +00:00
ihandle.h large-file-support-20030808 2003-08-08 21:40:42 +00:00
listinodes.c reindent-20030715 2003-07-16 00:28:24 +00:00
Makefile.in macos103-20031024 2003-10-24 07:25:58 +00:00
namei_ops.c namei-ihandle-leak-20031114 2003-11-14 23:36:16 +00:00
namei_ops.h large-file-support-20030808 2003-08-08 21:40:42 +00:00
nfs.h reindent-20030715 2003-07-16 00:28:24 +00:00
NTMakefile patch-from-shadow-to-jaltman-bkbox-20031120 2003-11-21 07:59:35 +00:00
ntops.c reindent-20030715 2003-07-16 00:28:24 +00:00
ntops.h reindent-20030715 2003-07-16 00:28:24 +00:00
nuke.c joe-beuhler-patches-20031122 2003-11-23 04:52:52 +00:00
partition.c macos103-20031024 2003-10-24 07:25:58 +00:00
partition.h large-file-support-20030808 2003-08-08 21:40:42 +00:00
physio.c large-file-support-20030808 2003-08-08 21:40:42 +00:00
purge.c reindent-20030715 2003-07-16 00:28:24 +00:00
salvage.h reindent-20030715 2003-07-16 00:28:24 +00:00
salvager.rc windows-file-versioning-20030619 2003-06-19 20:00:31 +00:00
viceinode.h large-file-support-20030808 2003-08-08 21:40:42 +00:00
vnode.c jbeuhler-flexelint-fun-with-printf-20031128 2003-11-29 21:37:50 +00:00
vnode.h large-file-support-20030808 2003-08-08 21:40:42 +00:00
vol-info.c jbeuhler-flexelint-fun-with-printf-20031128 2003-11-29 21:37:50 +00:00
vol-salvage.c jbuelhler-flexelint-aggregate-initialization-patches-20031129 2003-11-29 20:23:24 +00:00
voldefs.h reindent-20030715 2003-07-16 00:28:24 +00:00
volinfo.rc windows-file-versioning-20030619 2003-06-19 20:00:31 +00:00
volinodes.h reindent-20030715 2003-07-16 00:28:24 +00:00
volume.c tvolser-update-20031121 2003-11-22 02:57:04 +00:00
volume.h tvolser-update-20031121 2003-11-22 02:57:04 +00:00
vutil.c jbeuhler-flexelint-fun-with-printf-20031128 2003-11-29 21:37:50 +00:00
vutils.h afsconfig-and-rcsid-all-around-20010705 2001-07-05 16:20:00 +00:00
xfs_size_check.c reindent-20030715 2003-07-16 00:28:24 +00:00