diff options
| author | Ezra Peisach <epeisach@mit.edu> | 2007-02-01 19:17:31 +0000 |
|---|---|---|
| committer | Ezra Peisach <epeisach@mit.edu> | 2007-02-01 19:17:31 +0000 |
| commit | 605c7645d316bb591aaad9a1911d0c3c68032272 (patch) | |
| tree | 35669c01a7f95b3823bb77de0b695e43f7e9a417 /src/kadmin/testing/scripts | |
| parent | da16bd216dc4a780aebbcdd640c4c92bb33a825b (diff) | |
| download | krb5-605c7645d316bb591aaad9a1911d0c3c68032272.tar.gz krb5-605c7645d316bb591aaad9a1911d0c3c68032272.tar.xz krb5-605c7645d316bb591aaad9a1911d0c3c68032272.zip | |
buffer overflow in krb5_kt_get_name
krb5_kt_get_name() allows the called to specify the size of the buffer to copy
the name into. The size must be big enough for the tailing nul character.
If one specified a buffer length that is precisely the strlen w/o allowing for
the nul - the functions would copy one past the end of the buffer.
No code in our tree would be subject this problem - as buffers in use are 1024
or BUFSIZ....
The logic failure was:
strlen(p+1) vs. strlen(p)+1
The code is essentially duplicated in the three changed files.
Ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19137 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kadmin/testing/scripts')
0 files changed, 0 insertions, 0 deletions
