diff options
author | nectar <nectar@FreeBSD.org> | 2001-10-31 21:50:43 +0800 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2001-10-31 21:50:43 +0800 |
commit | aeb21f777ac5ada773a7d2443e01d44547d2d82b (patch) | |
tree | b156dd1e2b0b6048c9061723d364071fdb0e4404 /security/heimdal | |
parent | 2c867509018cdbb02040ae96ea5f8fa3b58c2907 (diff) | |
download | freebsd-ports-gnome-aeb21f777ac5ada773a7d2443e01d44547d2d82b.tar.gz freebsd-ports-gnome-aeb21f777ac5ada773a7d2443e01d44547d2d82b.tar.zst freebsd-ports-gnome-aeb21f777ac5ada773a7d2443e01d44547d2d82b.zip |
Fix a heap buffer overrun in gss_get_mic().
Diffstat (limited to 'security/heimdal')
-rw-r--r-- | security/heimdal/files/patch-lib::gssapi::get_mic.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/security/heimdal/files/patch-lib::gssapi::get_mic.c b/security/heimdal/files/patch-lib::gssapi::get_mic.c new file mode 100644 index 000000000000..12a7b2fc732f --- /dev/null +++ b/security/heimdal/files/patch-lib::gssapi::get_mic.c @@ -0,0 +1,28 @@ +Index: lib/gssapi/get_mic.c +=================================================================== +RCS file: /home/kth-krb/heimdal/lib/gssapi/get_mic.c,v +retrieving revision 1.18 +retrieving revision 1.19 +diff -u -r1.18 -r1.19 +--- lib/gssapi/get_mic.c 2001/06/18 02:50:15 1.18 ++++ lib/gssapi/get_mic.c 2001/10/31 13:37:39 1.19 +@@ -33,7 +33,7 @@ + + #include "gssapi_locl.h" + +-RCSID("$Id: get_mic.c,v 1.18 2001/06/18 02:50:15 assar Exp $"); ++RCSID("$Id: get_mic.c,v 1.19 2001/10/31 13:37:39 nectar Exp $"); + + static OM_uint32 + mic_des +@@ -235,10 +235,6 @@ + + memcpy (p, encdata.data, encdata.length); + krb5_data_free (&encdata); +- +- p += 8 + cksum.checksum.length; +- +- memcpy (p, message_buffer->value, message_buffer->length); + + krb5_auth_con_setlocalseqnumber (gssapi_krb5_context, + context_handle->auth_context, |