openafs/src/butm
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
..
.cvsignore add-cvsignores-to-project-20010910 2001-09-10 21:14:01 +00:00
butm_test.c reindent-20030715 2003-07-16 00:28:24 +00:00
butm.vdoc Standardize License information 2000-11-04 10:01:08 +00:00
config Initial IBM OpenAFS 1.0 tree 2000-11-04 02:13:13 +00:00
error_macros.h reindent-20030715 2003-07-16 00:28:24 +00:00
file_tm.c joe-beuhler-patches-20031122 2003-11-23 04:52:52 +00:00
Makefile.in makefiles-cflag-cleanup-20030111 2003-01-11 07:33:52 +00:00
NTMakefile patch-from-shadow-to-jaltman-bkbox-20031120 2003-11-21 07:59:35 +00:00
test_ftm.c jbeuhler-flexelint-fun-with-printf-20031128 2003-11-29 21:37:50 +00:00