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

dnsmasq SAST: Error: UNINIT (CWE-457): dnsmasq-2.85/src/edns0.c:272: var_decl: Declaring variable "encode" without initializer.

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • rhel-9.3.0
    • dnsmasq
    • None
    • None
    • None
    • sst_cs_infra_services
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      Error: UNINIT (CWE-457):
      dnsmasq-2.85/src/edns0.c:272: var_decl: Declaring variable ""encode"" without initializer.
      dnsmasq-2.85/src/edns0.c:289: uninit_use_in_call: Using uninitialized value ""*encode"" when calling ""strlen"".
      #  287|       }
      #  288|   
      #  289|->   return add_pseudoheader(header, plen, limit, PACKETSZ, EDNS0_OPTION_NOMDEVICEID, (unsigned char *)encode, strlen(encode), 0, replace); 
      #  290|   }
      #  291|   
      
      

      Please provide the package NVR for which bug is seen:

      How reproducible:

      Steps to reproduce

      Expected results

      Actual results

            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:
              Resolved: