gitlab.flawfinder.getwd-1

137
Download Count*
License

Use getcwd instead.

Run Locally

Run in CI

Defintion

rules:
  - id: flawfinder.getwd-1
    languages:
      - c
    message: |
      Use getcwd instead.
    metadata:
      cwe: "CWE-120: This does not protect against buffer overflows by itself, so use
        with caution (CWE-120, CWE-20)"
      primary_identifier: flawfinder.getwd-1
      secondary_identifiers:
        - name: Flawfinder - getwd
          type: flawfinder_func_name
          value: getwd
      license: MIT
    pattern: getwd(...)
    severity: WARNING