]> git.michaelhowe.org Git - packages/o/openafs.git/commit
aklog: Avoid overflows in get_afs_mountpoint
authorSimon Wilkinson <sxw@your-file-system.com>
Sat, 2 Mar 2013 12:09:42 +0000 (12:09 +0000)
committerStephan Wiesand <stephan.wiesand@desy.de>
Tue, 3 Jun 2014 16:54:17 +0000 (12:54 -0400)
commit110b2b674f0e2fda46d01a0b038c49bcc410cca4
tree6b3cf0e89c86719a71da0c1e1a721abf60a77633
parenta68deb7fc5719b2399e3e1d063f9681f6aa4bf31
aklog: Avoid overflows in get_afs_mountpoint

When working with the fixed length cellname buffer, use
strlcat and strlcpy rather than strcat and strcpy.

Caught by coverity (#985763)

Reviewed-on: http://gerrit.openafs.org/9445
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
(cherry picked from commit 19d2683d711f95165adc16fac765bb4a31c99043)

Change-Id: I91c169380600496a8b5148fffcb1a21feb1eee29
Reviewed-on: http://gerrit.openafs.org/11059
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/aklog/aklog.c