gitlab.flawfinder.usleep-1

137
Download Count*
License

Use nanosleep(2) or setitimer(2) instead.

Run Locally

Run in CI

Defintion

rules:
  - id: flawfinder.usleep-1
    languages:
      - c
    message: |
      Use nanosleep(2) or setitimer(2) instead.
    metadata:
      cwe: "CWE-676: This C routine is considered obsolete (as opposed to the shell
        command by the same name).   The interaction of this function with
        SIGALRM and other timer functions such as sleep(), alarm(), setitimer(),
        and nanosleep() is unspecified (CWE-676)"
      primary_identifier: flawfinder.usleep-1
      secondary_identifiers:
        - name: Flawfinder - usleep
          type: flawfinder_func_name
          value: usleep
      license: MIT
    pattern: usleep(...)
    severity: INFO