diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-05-05 20:30:47 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-05-05 20:30:47 +0000 |
commit | 3683e5a4d99d25a2992c45fd5b687332f758740b (patch) | |
tree | ea3951b6619324bec92899d2f03caac6ee89a781 /usr.sbin/afs | |
parent | cf724acf6caa32f9798bdd76a5a72d4774ee4bdf (diff) |
a couple of off-by-one string bounds in sscanf
millert@ ok
Diffstat (limited to 'usr.sbin/afs')
-rw-r--r-- | usr.sbin/afs/src/appl/fs/fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/afs/src/appl/fs/fs.c b/usr.sbin/afs/src/appl/fs/fs.c index ac6441e1541..5be95728449 100644 --- a/usr.sbin/afs/src/appl/fs/fs.c +++ b/usr.sbin/afs/src/appl/fs/fs.c @@ -1966,7 +1966,7 @@ afs_getacl(char *path) if(oldacl->NumPositiveEntries) for(i=0; i<oldacl->NumPositiveEntries; i++) { - sscanf(curptr, "%100s %d", tmpname, &tmprights); + sscanf(curptr, "%99s %d", tmpname, &tmprights); skipline(&curptr); if(!i) { pos=malloc(sizeof(struct AclEntry)); @@ -1983,7 +1983,7 @@ afs_getacl(char *path) if(oldacl->NumNegativeEntries) for(i=0; i<oldacl->NumNegativeEntries; i++) { - sscanf(curptr, "%100s %d", tmpname, &tmprights); + sscanf(curptr, "%99s %d", tmpname, &tmprights); skipline(&curptr); if(!i) { neg=malloc(sizeof(struct AclEntry)); |