Uploaded image for project: 'TEST Defect Tracking Project'
  1. TEST Defect Tracking Project
  2. TEST-1284

Remove Space After = if Trying to Assign a Value (For Empty String, Use Var='' ... ).

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • False
    • None
    • False

      Title: Remove Space After = if Trying to Assign a Value (For Empty String, Use Var='' ... ).

      Defect Dojo link: https://defectdojo.prodsec.redhat.com/finding/3233 (3233)

      Severity: High

      Due Date: May 21, 2022

      CWE: CWE-398

      CVE: Unknown

      Product/Engagement/Test: rhel-7/gzip / gzip-1.5-11.el7_9 / OSH-SCAN (csmock Scan (SARIF))

      Source File: /usr/bin/znew

      Source Line: 62

      Description:
      *Result message:* Remove space after = if trying to assign a value (for empty string, use var='' ... ).
      *Snippet:*
      ```Problem detected in this context:
      60|
      61| warn="(does not preserve modes and timestamp)"
      62|-> cpmod=
      63| cpmodarg=
      64| if type ${CPMOD:-cpmod} 2>/dev/null; then ```
      *Rule name:* SC1007
      *Code flow:*
      1. /usr/bin/znew:L62:C6
      Remove space after = if trying to assign a value (for empty string, use var='' ... ).

      Reporter: Scan Results Collector SA (scan-results-collector-importer-sa) ()

              Unassigned Unassigned
              defectdojo-prodsec Defect Dojo (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: