Uploaded image for project: 'SonarCFamily'
  1. SonarCFamily
  2. CPP-3174

S3588: Support POSIX function "pclose"

    XMLWordPrintable

    Details

    • Type: False Negative
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog of rules
    • Component/s: Symbolic Execution
    • Labels:
      None

      Description

      The following code snippet does not raise any issue because we do not handle the POSIX function `pclose`:

      void test() {
        FILE * pFile;
        pFile = popen(filePath, "r");
      
        pclose(pFile);
        pclose(pFile);
      }
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            amelie.renard Amélie Renard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: