mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
21ca232974
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 |
||
---|---|---|
.. | ||
test | ||
.cvsignore | ||
clone.c | ||
common.c | ||
devname.c | ||
fs_conv_411.c | ||
fssync.c | ||
fssync.h | ||
fstab.c | ||
gi.c | ||
ihandle.c | ||
ihandle.h | ||
listinodes.c | ||
Makefile.in | ||
namei_ops.c | ||
namei_ops.h | ||
nfs.h | ||
NTMakefile | ||
ntops.c | ||
ntops.h | ||
nuke.c | ||
partition.c | ||
partition.h | ||
physio.c | ||
purge.c | ||
salvage.h | ||
salvager.rc | ||
viceinode.h | ||
vnode.c | ||
vnode.h | ||
vol-info.c | ||
vol-salvage.c | ||
voldefs.h | ||
volinfo.rc | ||
volinodes.h | ||
volume.c | ||
volume.h | ||
vutil.c | ||
vutils.h | ||
xfs_size_check.c |