Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 144858 Details for
Bug 221529
rpc.gssd does not handle 64-bit OID conversions correctly
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
upstream patch
nfs-utils-1.0.8-011-gssd_64bit_bigendian.dif (text/plain), 2.31 KB, created by
Steve Dickson
on 2007-01-04 22:26:52 UTC
(
hide
)
Description:
upstream patch
Filename:
MIME Type:
Creator:
Steve Dickson
Created:
2007-01-04 22:26:52 UTC
Size:
2.31 KB
patch
obsolete
> >Signed-off-by: Kevin Coffman <kwc@citi.umich.edu> > >Correct the definition of mech_used in the gss context to use gss_OID_desc. >This fixes problems on 64-bit machines when referencing the OID. > >Also updates write_buffer function to use u_int rather than size_t when >doing calculations. > > >--- > > nfs-utils-1.0.8-kwc/utils/gssd/context_mit.c | 6 +++--- > nfs-utils-1.0.8-kwc/utils/gssd/write_bytes.h | 2 +- > 2 files changed, 4 insertions(+), 4 deletions(-) > >diff -puN utils/gssd/context_mit.c~gssd_64bit_bigendian utils/gssd/context_mit.c >--- nfs-utils-1.0.8/utils/gssd/context_mit.c~gssd_64bit_bigendian 2006-06-16 16:01:14.487887000 -0400 >+++ nfs-utils-1.0.8-kwc/utils/gssd/context_mit.c 2006-06-16 16:01:14.586887000 -0400 >@@ -131,7 +131,7 @@ typedef struct _krb5_gss_ctx_id_rec { > uint64_t seq_recv; /* gssint_uint64 */ > void *seqstate; > krb5_auth_context auth_context; >- gss_buffer_desc *mech_used; /* gss_OID_desc */ >+ gss_OID_desc *mech_used; /* gss_OID_desc */ > /* Protocol spec revision > 0 => RFC 1964 with 3DES and RC4 enhancements > 1 => draft-ietf-krb-wg-gssapi-cfx-01 >@@ -168,7 +168,7 @@ typedef struct _krb5_gss_ctx_id_rec { > int established; > int big_endian; > krb5_auth_context auth_context; >- gss_buffer_desc *mech_used; >+ gss_OID_desc *mech_used; > int nctypes; > krb5_cksumtype *ctypes; > } krb5_gss_ctx_id_rec, *krb5_gss_ctx_id_t; >@@ -719,7 +719,7 @@ serialize_krb5_ctx(gss_ctx_id_t ctx, gss > if (WRITE_BYTES(&p, end, kctx->endtime)) goto out_err; > word_seq_send = kctx->seq_send; > if (WRITE_BYTES(&p, end, word_seq_send)) goto out_err; >- if (write_buffer(&p, end, kctx->mech_used)) goto out_err; >+ if (write_oid(&p, end, kctx->mech_used)) goto out_err; > > printerr(2, "serialize_krb5_ctx: serializing keys with " > "enctype %d and length %d\n", >diff -puN utils/gssd/write_bytes.h~gssd_64bit_bigendian utils/gssd/write_bytes.h >--- nfs-utils-1.0.8/utils/gssd/write_bytes.h~gssd_64bit_bigendian 2006-06-16 16:01:14.509887000 -0400 >+++ nfs-utils-1.0.8-kwc/utils/gssd/write_bytes.h 2006-06-16 16:01:14.541892000 -0400 >@@ -56,7 +56,7 @@ write_buffer(char **p, char *end, gss_bu > int len = (int)arg->length; /* make an int out of size_t */ > if (WRITE_BYTES(p, end, len)) > return -1; >- if (*p + arg->length > end) >+ if (*p + len > end) > return -1; > memcpy(*p, arg->value, len); > *p += len; > >_
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 221529
: 144858