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

S5847: Add support for Windows equivalent of Posix

    XMLWordPrintable

    Details

      Description

      The rule about TOCTOU mainly check POSIX function calls. On windows, similar functions exist, with other names (access -> _access & _waccess). Additionally, variants flagged as "secure" also exist (_access_s & _waccess_s).

      Those functions should be checked too.

      Note: Since some of these functions deal with wide string literals, in the rule implementation we should remove all mentions of StringLiteral::getString that only work with narrow strings, and use StringTools.h instead.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              loic.joly Loïc Joly
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: