Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-28964

services.c:1335: var_decl: Declaring variable "newcontext" without initializer

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-9.4
    • libsepol
    • None
    • Low
    • 1
    • sst_security_selinux
    • ssg_security
    • 2
    • False
    • Hide

      None

      Show
      None
    • No
    • CY24Q2
    • Hide

      This error is no longer identified by Coverity scan.

      Show
      This error is no longer identified by Coverity scan.
    • None
    • None
    • Unspecified Release Note Type - Unknown
    • None

      Error: UNINIT (CWE-457): [#def150] [important]
      libsepol-3.6/src/services.c:1335: var_decl: Declaring variable "newcontext" without initializer.
      libsepol-3.6/src/services.c:1462: uninit_use_in_call: Using uninitialized value "newcontext.range.level[0].cat.node" when calling "context_destroy".
      # 1460|   	rc = sepol_sidtab_context_to_sid(sidtab, &newcontext, out_sid);
      # 1461|         out:
      # 1462|-> 	context_destroy(&newcontext);
      # 1463|   	return rc;
      # 1464|   }
      

              rhn-engineering-plautrba Petr Lautrbach
              rhn-engineering-plautrba Petr Lautrbach
              Petr Lautrbach Petr Lautrbach
              SSG Security QE SSG Security QE
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: