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 168579 Details for
Bug 251853
spnego_malloc causes nsupdate to crash badly
[?]
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]
Patch which uses real malloc to create gss_buffer structures
bind-9.5-spnego-malloc-gss_buffer.patch (text/plain), 1.22 KB, created by
Stepan Kasal
on 2007-08-23 10:44:55 UTC
(
hide
)
Description:
Patch which uses real malloc to create gss_buffer structures
Filename:
MIME Type:
Creator:
Stepan Kasal
Created:
2007-08-23 10:44:55 UTC
Size:
1.22 KB
patch
obsolete
>2007-08-23 Stepan Kasal <skasal@redhat.com> > > * lib/dns/spnego.c (gssapi_spnego_encapsulate): Take care that > the buffer in gss_buffer_desc structure is allocated by real > malloc. > (real_malloc): New inline function, before `malloc' is redefined. > >Written-by: Stepan Kasal <skasal@redhat.com> > >diff -urpN bind-9.5.0a6.orig/lib/dns/spnego.c bind-9.5.0a6/lib/dns/spnego.c >--- bind-9.5.0a6.orig/lib/dns/spnego.c 2007-06-20 01:47:16.000000000 +0200 >+++ bind-9.5.0a6/lib/dns/spnego.c 2007-08-23 09:32:41.000000000 +0200 >@@ -247,6 +247,12 @@ spnego_realloc(void *old_ptr, size_t new > return (new_ptr); > } > >+static inline void * >+real_malloc(size_t size) >+{ >+ return malloc(size); >+} >+ > #define malloc(x) spnego_malloc(x, __FILE__, __LINE__) > #define free(x) spnego_free(x, __FILE__, __LINE__) > #define realloc(x,y) spnego_realloc(x, y, __FILE__, __LINE__) >@@ -1479,7 +1485,8 @@ gssapi_spnego_encapsulate(OM_uint32 * mi > gssapi_encap_length(buf_size, &len, &outer_len, mech); > > output_token->length = outer_len; >- output_token->value = malloc(outer_len); >+ /* The value will be freed by gss_release_buffer: */ >+ output_token->value = real_malloc(outer_len); > if (output_token->value == NULL) { > *minor_status = ENOMEM; > return (GSS_S_FAILURE);
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 251853
:
161140
|
162048
| 168579