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

few unfreed resource in krb5 support

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.0.beta
    • bind
    • None
    • None
    • None
    • rhel-sst-cs-net-perf-services
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • None

      https://cov01.lab.eng.brq2.redhat.com/osh/waiving/122842/304641/

      Most can be ignored, but some might have unlikely potential to be triggerable remotely. But just in case, fixing these should be trivial.

       

      5. Defect type: RESOURCE_LEAK

      3. bind-9.18.27/lib/dns/gssapictx.c:213:2: alloc_arg: "krb5_get_default_realm" allocates memory that is stored into "krb5_realm_name".
      6. bind-9.18.27/lib/dns/gssapictx.c:227:2: noescape: Resource "krb5_realm_name" is not freed or pointed-to in "strcasecmp".
      8. bind-9.18.27/lib/dns/gssapictx.c:236:1: leaked_storage: Variable "krb5_realm_name" going out of scope leaks the storage it points to.

      1. 234| }
      2. 235| krb5_free_context(krb5_ctx);
      3. 236|-> }
      4. 237|
      5. 238| static OM_uint32
        Collapse

        6. Defect type: RESOURCE_LEAK

        3. bind-9.18.27/lib/dns/gssapictx.c:213:2: alloc_arg: "krb5_get_default_realm" allocates memory that is stored into "krb5_realm_name".
        6. bind-9.18.27/lib/dns/gssapictx.c:227:2: noescape: Resource "krb5_realm_name" is not freed or pointed-to in "strcasecmp".
        8. bind-9.18.27/lib/dns/gssapictx.c:228:3: noescape: Assuming resource "krb5_realm_name" is not freed or pointed-to as ellipsis argument to "gss_log".
        9. bind-9.18.27/lib/dns/gssapictx.c:233:3: leaked_storage: Variable "krb5_realm_name" going out of scope leaks the storage it points to.

      6. 231| krb5_realm_name, gss_name);
      7. 232| krb5_free_context(krb5_ctx);
      8. 233|-> return;
      9. 234| }
      10. 235| krb5_free_context(krb5_ctx);
        Collapse

        7. Defect type: RESOURCE_LEAK

        3. bind-9.18.27/lib/dns/gssapictx.c:213:2: alloc_arg: "krb5_get_default_realm" allocates memory that is stored into "krb5_realm_name".
        6. bind-9.18.27/lib/dns/gssapictx.c:225:3: leaked_storage: Variable "krb5_realm_name" going out of scope leaks the storage it points to.

      11. 223| gss_name);
      12. 224| krb5_free_context(krb5_ctx);
      13. 225|-> return;
      14. 226| }
      15. 227| if (strcasecmp(p + 1, krb5_realm_name) != 0) {

              pemensik@redhat.com Petr Mensik
              pemensik@redhat.com Petr Mensik
              Petr Mensik Petr Mensik
              rhel-cs-infra-services-qe rhel-cs-infra-services-qe rhel-cs-infra-services-qe rhel-cs-infra-services-qe
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: