gitlab.flawfinder.strncpy-1

137
Download Count*
License

Easily used incorrectly

Run Locally

Run in CI

Defintion

rules:
  - id: flawfinder.strncpy-1
    languages:
      - c
    message: |
      Easily used incorrectly
    metadata:
      cwe: "CWE-120: Doesn't always \\0-terminate or check for invalid pointers
        [MS-banned] (CWE-120)"
      primary_identifier: flawfinder.strncpy-1
      secondary_identifiers:
        - name: Flawfinder - strncpy
          type: flawfinder_func_name
          value: strncpy
      license: MIT
    pattern: strncpy(...)
    severity: INFO