Use getrlimit(2), setrlimit(2), and sysconf(3) instead.
Run in CI
rules: - id: flawfinder.ulimit-1 languages: - c message: | Use getrlimit(2), setrlimit(2), and sysconf(3) instead. metadata: cwe: "CWE-676: This C routine is considered obsolete (as opposed to the shell command by the same name, which is NOT obsolete) (CWE-676)" primary_identifier: flawfinder.ulimit-1 secondary_identifiers: - name: Flawfinder - ulimit type: flawfinder_func_name value: ulimit license: MIT pattern: ulimit(...) severity: INFO
Short Link: https://sg.run/v2nX