#1003 Uninitialized pointer read in sdap_gssapi_get_default_realm()
Closed: Fixed Opened 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:
- fa3db4695a82b09cab30d0499114159b836e6357 (master)
- ce7a7a35514cf0e1e9ef9d6a5cb287536f7fe85c (sssd-1-6)
- c2719cc6c649d3c80c74ca5f9a3ef2c61c528341 (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

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.

Metadata