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

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-10.0
    • rhel-9.3.0
    • dnsmasq
    • None
    • None
    • rhel-sst-cs-net-perf-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
              Petr Sklenar Petr Sklenar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: