Created
December 18, 2024 12:13
-
-
Save unicolet/138ce6c7e23a4edb45b05fd80ef9ea1c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rules: | |
- id: curl-reset-without-lowspeed-time | |
languages: | |
- c | |
- cpp | |
severity: ERROR | |
message: curl_easy_reset() called without setting CURLOPT_LOW_SPEED_TIME | |
patterns: | |
- pattern: curl_easy_reset($CURLHANDLE); | |
- pattern-not-inside: |- | |
curl_easy_reset($CURLHANDLE); | |
... | |
curl_easy_setopt($CURLHANDLE, CURLOPT_LOW_SPEED_TIME, $TIME); | |
metadata: | |
category: correctness |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment