]> git.ipfire.org Git - thirdparty/krb5.git/commit
Various gssalloc fixes 1008/head
authorGreg Hudson <ghudson@mit.edu>
Sat, 23 Nov 2019 16:42:59 +0000 (11:42 -0500)
committerGreg Hudson <ghudson@mit.edu>
Tue, 26 Nov 2019 22:23:15 +0000 (17:23 -0500)
commitab5c4259bdbe51dd3f4b5c5aff22628188d04322
treeed32ead68301c6b115a99c9764d79d53c2d45788
parentb4ef5a486a92794750f08026f64850110ae4e87b
Various gssalloc fixes

The DEBUG_GSSALLOC version of gssalloc_realloc() must add the sentinel
size to the byte count.

The mechglue gss_decapsulate_token(), gss_encapsulate_token(), and
gss_export_sec_context() must use gssalloc_malloc() to allocate
output buffers.

The krb5 mech's gss_export_name_composite() and gss_pseudo_random()
implementations must use gssalloc_malloc() to allocate output buffers.

SPNEGO's gss_display_status() implementation must use gssalloc for the
output buffer.

The sample GSS server must use gss_release_buffer() to free the result
of gss_export_sec_context().

ticket: 8852 (new)
tags: pullup
target_version: 1.17-next
target_version: 1.16-next
src/appl/gss-sample/gss-server.c
src/lib/gssapi/generic/gssapi_alloc.h
src/lib/gssapi/krb5/naming_exts.c
src/lib/gssapi/krb5/prf.c
src/lib/gssapi/mechglue/g_decapsulate_token.c
src/lib/gssapi/mechglue/g_encapsulate_token.c
src/lib/gssapi/mechglue/g_exp_sec_context.c
src/lib/gssapi/spnego/spnego_mech.c