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

lldpad: Using uninitialized value

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.6
    • rhel-10.0
    • lldpad
    • None
    • lldpad-1.1.1-3.gitf1dd9eb.el9
    • None
    • Moderate
    • rhel-net-core
    • ssg_networking
    • 5
    • 11
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • 1

      Error: UNINIT (CWE-457):
      lldpad-1.1.0/vdptool.c:616: var_decl: Declaring variable "cmd" without initializer.
      lldpad-1.1.0/vdptool.c:632: uninit_use_in_call: Using uninitialized value "*cmd.ifname" as argument to "%*s" when calling "printf". [Note: The source code implementation of the function has been overridden by a builtin model.]
      #  630|                   memcpy(cmd.ifname, ibuf + CMD_IF, len);
      #  631|           } else {
      #  632|->                 printf("Response ifname too long: %*s\n", (int)len, cmd.ifname);
      #  633|                   return;
      #  634|           }
      

              haliu@redhat.com Hangbin Liu
              haliu@redhat.com Hangbin Liu
              Hangbin Liu Hangbin Liu
              Fei Liu Fei Liu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: