Fix scanf buffer overflows
authorNickolai Zeldovich <nickolai@csail.mit.edu>
Tue, 12 Feb 2013 20:08:38 +0000 (15:08 -0500)
committerJeffrey Altman <jaltman@your-file-system.com>
Tue, 4 Jun 2013 22:32:42 +0000 (15:32 -0700)
commitcfecac2e71bca14f9207e5879b7c04f965776737
tree454cafc255cea119b88c62a8e8b502a65e30115c
parent0789772b1745f84c58cef4f36c61c927afec6ad8
Fix scanf buffer overflows

Fix potential buffer overflows caused by misuse of the scanf function
in the fileserver and ptserver.

Also fix similar issues in the client side fs command and libadmin
library.

Change-Id: Ia6a46981c50537da1673507c2bc777f96e43f95a
(This change was applied to the 1.6 branch as a security fix for 1.6.2 as
commit d1855f8e04; this commit brings the fix into master.)
Reviewed-on: http://gerrit.openafs.org/9962
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/libacl/aclprocs.c
src/libadmin/client/afs_clientAdmin.c
src/ptserver/ptclient.c
src/ptserver/ptprocs.c
src/ptserver/readgroup.c
src/venus/fs.c