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

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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • rhel-10.0.beta
    • rhel-10.0.beta
    • libsepol
    • None
    • libsepol-3.7-2.el10
    • None
    • Low
    • rhel-sst-security-selinux
    • ssg_security
    • 25
    • 2
    • False
    • Hide

      None

      Show
      None
    • No
    • 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|   }
      

              vmojzis@redhat.com Vit Mojzis
              rhn-engineering-plautrba Petr Lautrbach
              Vit Mojzis Vit Mojzis
              Milos Malik Milos Malik
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: