diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2000-06-30 04:35:23 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2000-06-30 04:35:23 +0000 |
commit | ab5bccd127cf97d783e212fbbe84d2655e5fd014 (patch) | |
tree | 3aa9b49cfeb30c7613112d418b0b0b490c202325 /japanese/Canna/files/patch-af | |
parent | Fix EsounD daemon and library insecurities noted on BugTraq. (diff) |
Add length of delimiters.
Suggested by: kjm@RINS.RYUKOKU.AC.JP
Notes
Notes:
svn path=/head/; revision=30008
Diffstat (limited to '')
-rw-r--r-- | japanese/Canna/files/patch-af | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/japanese/Canna/files/patch-af b/japanese/Canna/files/patch-af index 656d80769276..48328fc6e459 100644 --- a/japanese/Canna/files/patch-af +++ b/japanese/Canna/files/patch-af @@ -6,7 +6,7 @@ if (client->groupname && client->groupname[0]) { + if (strlen(DDUSER) + strlen(client->username) + + strlen(DDGROUP) + strlen(client->groupname) + -+ strlen(DDPATH) >= 256) ++ strlen(DDPATH) + 4 >= 256) + return ( -1 ); sprintf(dichome, "%s/%s:%s/%s:%s", DDUSER, client->username, @@ -15,7 +15,7 @@ } else { + if (strlen(DDUSER) + strlen(client->username) + -+ strlen(DDPATH) >= 256) ++ strlen(DDPATH) + 2 >= 256) + return ( -1 ); sprintf(dichome, "%s/%s:%s", DDUSER, client->username, |