#1003 Uninitialized pointer read in sdap_gssapi_get_default_realm()
Closed: Fixed None Opened 12 years ago by jhrozek.

{{{
728static const char
729sdap_gssapi_get_default_realm(TALLOC_CTX
mem_ctx)
730{
731 char krb5_realm = NULL;
CID 11028: Uninitialized pointer read (UNINIT)Declaring variable "realm" without initializer.
732 const char
realm;
733 krb5_error_code krberr;
734 krb5_context context = NULL;
735
736 krberr = krb5_init_context(&context);
At conditional (1): "krberr" taking the true branch.
737 if (krberr) {
At conditional (2): "debug_level & __debug_macro_newlevel" taking the true branch.
At conditional (3): "debug_timestamps" taking the true branch.
At conditional (4): "debug_microseconds" taking the true branch.
738 DEBUG(2, ("Failed to init kerberos context\n"));
739 goto done;
740 }

The label done returns the realm pointer which is undefined at the time.


Fields changed

owner: somebody => jhrozek

Fields changed

status: new => assigned

Fields changed

patch: 0 => 1
status: assigned => new

Fixed by:
- fa3db46 (master)
- ce7a7a3 (sssd-1-6)
- c2719cc (sssd-1-5)

component: SSSD => LDAP Provider
milestone: NEEDS_TRIAGE => SSSD 1.5.14
resolution: => fixed
status: new => closed

Fields changed

rhbz: => 0

Metadata Update from @jhrozek:
- Issue assigned to jhrozek
- Issue set to the milestone: SSSD 1.5.14

7 years ago

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/2045

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Login to comment on this ticket.

Metadata