diff options
author | Cy Schubert <cy@FreeBSD.org> | 2005-07-12 21:29:26 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2005-07-12 21:29:26 +0000 |
commit | 4871e2a3be509fae5d98dbf7fb5f4e3c62ac7218 (patch) | |
tree | 96fc43c601de12278b70ba15e989721c3202031c /security/krb5-appl/files/patch-lib::krb5::krb::unparse.c | |
parent | 634e33d949b0bc8a1d75f9f6f9ea611fb708959d (diff) |
Fix:
- MIT KRB5 Security Advisory 2005-002: Buffer overflow, heap corruption in KDC
- MIT KRB5 Security Advisory 2005-003: Double free in krb5_recvauth
Notes
Notes:
svn path=/head/; revision=139005
Diffstat (limited to 'security/krb5-appl/files/patch-lib::krb5::krb::unparse.c')
-rw-r--r-- | security/krb5-appl/files/patch-lib::krb5::krb::unparse.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/security/krb5-appl/files/patch-lib::krb5::krb::unparse.c b/security/krb5-appl/files/patch-lib::krb5::krb::unparse.c new file mode 100644 index 000000000000..b45233b0ab78 --- /dev/null +++ b/security/krb5-appl/files/patch-lib::krb5::krb::unparse.c @@ -0,0 +1,11 @@ +--- lib/krb5/krb/unparse.c.orig Tue Jan 18 09:57:32 2005 ++++ lib/krb5/krb/unparse.c Tue Jul 12 14:04:38 2005 +@@ -91,6 +91,8 @@ + totalsize++; + totalsize++; /* This is for the separator */ + } ++ if (nelem == 0) ++ totalsize++; + + /* + * Allocate space for the ascii string; if space has been |