gitlab.flawfinder.equal-1.mismatch-1.is_permutation-1

137
Download Count*
License

This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it.

Run Locally

Run in CI

Defintion

rules:
  - id: flawfinder.equal-1.mismatch-1.is_permutation-1
    languages:
      - c
    message: >
      This function is often discouraged by most C++ coding standards in favor
      of its safer

      alternatives provided since C++14. Consider using a form of this function that checks the

      second iterator before potentially overflowing it.
    metadata:
      cwe: "CWE-126: Function does not check the second iterator for over-read
        conditions (CWE-126)"
      primary_identifier: flawfinder.equal-1.mismatch-1.is_permutation-1
      secondary_identifiers:
        - name: Flawfinder - equal
          type: flawfinder_func_name
          value: equal
        - name: Flawfinder - mismatch
          type: flawfinder_func_name
          value: mismatch
        - name: Flawfinder - is_permutation
          type: flawfinder_func_name
          value: is_permutation
      license: MIT
    pattern-either:
      - pattern: equal(...)
      - pattern: mismatch(...)
      - pattern: is_permutation(...)
    severity: INFO