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

lldpad: COPY_PASTE_ERROR

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

      Error: COPY_PASTE_ERROR (CWE-398):
      lldpad-1.1.0/lldp_dcbx_nl.c:685: original: "pg_temp->tx.up" looks like the original copy.
      lldpad-1.1.0/lldp_dcbx_nl.c:712: copy_paste_error: "tx" in "pg_temp->tx.up" looks like a copy-paste error.
      lldpad-1.1.0/lldp_dcbx_nl.c:712: remediation: Should it say "rx" instead?
      #  710|           for (i = 0; i < MAX_USER_PRIORITIES; i++) {
      #  711|                   for (j = 0; j < MAX_TRAFFIC_CLASSES; j++) {
      #  712|->                         if (pg_temp->tx.up[i].pgid == j) {
      #  713|                                   tc[j].up_to_tc_bitmap |= (1 << i);
      #  714|                                   tc[j].prio_type = pg_temp->rx.up[i].strict_priority;
      

              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: