]> git.michaelhowe.org Git - packages/o/openafs.git/commit
audit: Fix overflow in file backend
authorSimon Wilkinson <sxw@your-file-system.com>
Sat, 2 Mar 2013 12:38:49 +0000 (12:38 +0000)
committerDerrick Brashear <shadow@your-file-system.com>
Mon, 11 Mar 2013 14:26:41 +0000 (07:26 -0700)
commitb0b3def56c15161df28059e270f0360c31241217
tree6946fba1beb91e20365a3c9965a31f911bbe8816
parent249a5934605106f9025643321eb8e24f113fdd2a
audit: Fix overflow in file backend

If the filename passed to open_file was larger than MAXPATHLEN-5,
then we'd overflow the oldName buffer when creating the backup
filename. Fix the overflow by using a malloc'd buffer instead.

Caught by coverity (#985767)

Change-Id: Ie364aae0749b3658ab11a354844878d10c6970ab
Reviewed-on: http://gerrit.openafs.org/9448
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
src/audit/audit-file.c