René's URL Explorer Experiment


Title: For loop variable changed in body — CodeQL query help documentation

direct link

Domain: codeql.github.com

Links:

CodeQL documentation https://codeql.github.com/docs
CodeQL overviewhttps://codeql.github.com/docs/codeql-overview
Writing CodeQL querieshttps://codeql.github.com/docs/writing-codeql-queries
CodeQL language guideshttps://codeql.github.com/docs/codeql-language-guides
QL language referencehttps://codeql.github.com/docs/ql-language-reference/
CodeQL standard-librarieshttps://codeql.github.com/codeql-standard-libraries
CodeQL query helphttps://codeql.github.com/codeql-query-help
CodeQL repositoryhttps://github.com/github/codeql
QL publicationshttps://codeql.github.com/publications
CodeQL query help for C and C++https://codeql.github.com/codeql-query-help/cpp/
‘new’ object freed with ‘delete[]’https://codeql.github.com/codeql-query-help/cpp/cpp-new-delete-array-mismatch/
‘new[]’ array freed with ‘delete’https://codeql.github.com/codeql-query-help/cpp/cpp-new-array-delete-mismatch/
Accidental rethrowhttps://codeql.github.com/codeql-query-help/cpp/cpp-rethrow-no-exception/
Ambiguously signed bit-field memberhttps://codeql.github.com/codeql-query-help/cpp/cpp-ambiguously-signed-bit-field/
Arithmetic operation assumes 365 days per yearhttps://codeql.github.com/codeql-query-help/cpp/cpp-leap-year-adding-365-days-per-year/
Array argument size mismatchhttps://codeql.github.com/codeql-query-help/cpp/cpp-array-arg-size-mismatch/
Array offset used before range checkhttps://codeql.github.com/codeql-query-help/cpp/cpp-offset-use-before-range-check/
Assignment where comparison was intendedhttps://codeql.github.com/codeql-query-help/cpp/cpp-assign-where-compare-meant/
Authentication bypass by spoofinghttps://codeql.github.com/codeql-query-help/cpp/cpp-user-controlled-bypass/
Avoid floats in for loopshttps://codeql.github.com/codeql-query-help/cpp/cpp-loop-variable-float/
Bad check for oddnesshttps://codeql.github.com/codeql-query-help/cpp/cpp-incomplete-parity-check/
Bad check for overflow of integer additionhttps://codeql.github.com/codeql-query-help/cpp/cpp-bad-addition-overflow-check/
Badly bounded writehttps://codeql.github.com/codeql-query-help/cpp/cpp-badly-bounded-write/
Block with too many statementshttps://codeql.github.com/codeql-query-help/cpp/cpp-complex-block/
CGI script vulnerable to cross-site scriptinghttps://codeql.github.com/codeql-query-help/cpp/cpp-cgi-xss/
Call to memset may be deletedhttps://codeql.github.com/codeql-query-help/cpp/cpp-memset-may-be-deleted/
Call to a function with one or more incompatible argumentshttps://codeql.github.com/codeql-query-help/cpp/cpp-mistyped-function-arguments/
Call to alloca in a loophttps://codeql.github.com/codeql-query-help/cpp/cpp-alloca-in-loop/
Call to function with extraneous argumentshttps://codeql.github.com/codeql-query-help/cpp/cpp-futile-params/
Call to function with fewer arguments than declared parametershttps://codeql.github.com/codeql-query-help/cpp/cpp-too-few-arguments/
Call to memory access function may overflow bufferhttps://codeql.github.com/codeql-query-help/cpp/cpp-overflow-buffer/
Cast between HRESULT and a Boolean typehttps://codeql.github.com/codeql-query-help/cpp/cpp-hresult-boolean-conversion/
Cast from char* to wchar_t*https://codeql.github.com/codeql-query-help/cpp/cpp-incorrect-string-type-conversion/
Catching by valuehttps://codeql.github.com/codeql-query-help/cpp/cpp-catch-by-value/
Certificate not checkedhttps://codeql.github.com/codeql-query-help/cpp/cpp-certificate-not-checked/
Certificate result conflationhttps://codeql.github.com/codeql-query-help/cpp/cpp-certificate-result-conflation/
Cleartext storage of sensitive information in an SQLite databasehttps://codeql.github.com/codeql-query-help/cpp/cpp-cleartext-storage-database/
Cleartext storage of sensitive information in bufferhttps://codeql.github.com/codeql-query-help/cpp/cpp-cleartext-storage-buffer/
Cleartext storage of sensitive information in filehttps://codeql.github.com/codeql-query-help/cpp/cpp-cleartext-storage-file/
Cleartext transmission of sensitive informationhttps://codeql.github.com/codeql-query-help/cpp/cpp-cleartext-transmission/
Comma before misleading indentationhttps://codeql.github.com/codeql-query-help/cpp/cpp-comma-before-misleading-indentation/
Commented-out codehttps://codeql.github.com/codeql-query-help/cpp/cpp-commented-out-code/
Comparison of narrow type with wide type in loop conditionhttps://codeql.github.com/codeql-query-help/cpp/cpp-comparison-with-wider-type/
Comparison result is always the samehttps://codeql.github.com/codeql-query-help/cpp/cpp-constant-comparison/
Comparison where assignment was intendedhttps://codeql.github.com/codeql-query-help/cpp/cpp-compare-where-assign-meant/
Complex conditionhttps://codeql.github.com/codeql-query-help/cpp/cpp-complex-condition/
Constant return typehttps://codeql.github.com/codeql-query-help/cpp/cpp-non-member-const-no-effect/
Constant return type on memberhttps://codeql.github.com/codeql-query-help/cpp/cpp-member-const-no-effect/
Continue statement that does not continuehttps://codeql.github.com/codeql-query-help/cpp/cpp-continue-in-false-loop/
Dangerous use of ‘cin’https://codeql.github.com/codeql-query-help/cpp/cpp-dangerous-cin/
Dead code due to goto or break statementhttps://codeql.github.com/codeql-query-help/cpp/cpp-dead-code-goto/
Declaration hides parameterhttps://codeql.github.com/codeql-query-help/cpp/cpp-declaration-hides-parameter/
Declaration hides variablehttps://codeql.github.com/codeql-query-help/cpp/cpp-declaration-hides-variable/
Dubious NULL checkhttps://codeql.github.com/codeql-query-help/cpp/cpp-dubious-null-check/
Duplicate include guardhttps://codeql.github.com/codeql-query-help/cpp/cpp-duplicate-include-guard/
Empty branch of conditionalhttps://codeql.github.com/codeql-query-help/cpp/cpp-empty-block/
Equality test on floating-point valueshttps://codeql.github.com/codeql-query-help/cpp/cpp-equality-on-floats/
Exception thrown in destructorhttps://codeql.github.com/codeql-query-help/cpp/cpp-throw-in-destructor/
Exposure of system data to an unauthorized control spherehttps://codeql.github.com/codeql-query-help/cpp/cpp-system-data-exposure/
Expression has no effecthttps://codeql.github.com/codeql-query-help/cpp/cpp-useless-expression/
FIXME commenthttps://codeql.github.com/codeql-query-help/cpp/cpp-fixme-comment/
Failure to use HTTPS URLshttps://codeql.github.com/codeql-query-help/cpp/cpp-non-https-url/
File created without restricting permissionshttps://codeql.github.com/codeql-query-help/cpp/cpp-world-writable-file-creation/
File opened with O_CREAT flag but without mode argumenthttps://codeql.github.com/codeql-query-help/cpp/cpp-open-call-with-mode-argument/
For loop variable changed in bodyhttps://codeql.github.com/codeql-query-help/cpp/cpp-loop-variable-changed/
Function declared in blockhttps://codeql.github.com/codeql-query-help/cpp/cpp-function-in-block/
Futile conditionalhttps://codeql.github.com/codeql-query-help/cpp/cpp-empty-if/
Guarded Freehttps://codeql.github.com/codeql-query-help/cpp/cpp-guarded-free/
Implicit downcast from bitfieldhttps://codeql.github.com/codeql-query-help/cpp/cpp-implicit-bitfield-downcast/
Implicit function declarationhttps://codeql.github.com/codeql-query-help/cpp/cpp-implicit-function-declaration/
Include header files onlyhttps://codeql.github.com/codeql-query-help/cpp/cpp-include-non-header/
Inconsistent definition of copy constructor and assignment (’Rule of Two’)https://codeql.github.com/codeql-query-help/cpp/cpp-rule-of-two/
Inconsistent direction of for loophttps://codeql.github.com/codeql-query-help/cpp/cpp-inconsistent-loop-direction/
Inconsistent nullness checkhttps://codeql.github.com/codeql-query-help/cpp/cpp-inconsistent-null-check/
Inconsistent operation on return valuehttps://codeql.github.com/codeql-query-help/cpp/cpp-inconsistent-call-on-result/
Inconsistent virtual inheritancehttps://codeql.github.com/codeql-query-help/cpp/cpp-inconsistent-virtual-inheritance/
Incorrect ‘not’ operator usagehttps://codeql.github.com/codeql-query-help/cpp/cpp-incorrect-not-operator-usage/
Incorrect allocation-error handlinghttps://codeql.github.com/codeql-query-help/cpp/cpp-incorrect-allocation-error-handling/
Incorrect constructor delegationhttps://codeql.github.com/codeql-query-help/cpp/cpp-constructor-delegation/
Incorrect return-value check for a ‘scanf’-like functionhttps://codeql.github.com/codeql-query-help/cpp/cpp-incorrectly-checked-scanf/
Invalid pointer dereferencehttps://codeql.github.com/codeql-query-help/cpp/cpp-invalid-pointer-deref/
Irregular enum initializationhttps://codeql.github.com/codeql-query-help/cpp/cpp-irregular-enum-init/
Iterator to expired containerhttps://codeql.github.com/codeql-query-help/cpp/cpp-iterator-to-expired-container/
Large object passed by valuehttps://codeql.github.com/codeql-query-help/cpp/cpp-large-parameter/
Leaky catchhttps://codeql.github.com/codeql-query-help/cpp/cpp-catch-missing-free/
Likely overrunning writehttps://codeql.github.com/codeql-query-help/cpp/cpp-very-likely-overrunning-write/
Local variable address stored in non-local memoryhttps://codeql.github.com/codeql-query-help/cpp/cpp-stack-address-escape/
Local variable hides global variablehttps://codeql.github.com/codeql-query-help/cpp/cpp-local-variable-hides-global-variable/
Long switch casehttps://codeql.github.com/codeql-query-help/cpp/cpp-long-switch/
Lossy function result casthttps://codeql.github.com/codeql-query-help/cpp/cpp-lossy-function-result-cast/
Lossy pointer casthttps://codeql.github.com/codeql-query-help/cpp/cpp-lossy-pointer-cast/
Mismatching new/free or malloc/deletehttps://codeql.github.com/codeql-query-help/cpp/cpp-new-free-mismatch/
Missing enum case in switchhttps://codeql.github.com/codeql-query-help/cpp/cpp-missing-case-in-switch/
Missing header guardhttps://codeql.github.com/codeql-query-help/cpp/cpp-missing-header-guard/
Missing return statementhttps://codeql.github.com/codeql-query-help/cpp/cpp-missing-return/
Missing return-value check for a ‘scanf’-like functionhttps://codeql.github.com/codeql-query-help/cpp/cpp-missing-check-scanf/
Multiplication result converted to larger typehttps://codeql.github.com/codeql-query-help/cpp/cpp-integer-multiplication-cast-to-long/
NULL application name with an unquoted path in call to CreateProcesshttps://codeql.github.com/codeql-query-help/cpp/cpp-unsafe-create-process-call/
Nested loops with same variablehttps://codeql.github.com/codeql-query-help/cpp/cpp-nested-loops-with-same-variable/
No raw arrays in interfaceshttps://codeql.github.com/codeql-query-help/cpp/cpp-array-in-interface/
No space for zero terminatorhttps://codeql.github.com/codeql-query-help/cpp/cpp-no-space-for-terminator/
No trivial switch statementshttps://codeql.github.com/codeql-query-help/cpp/cpp-trivial-switch/
Non-constant format stringhttps://codeql.github.com/codeql-query-help/cpp/cpp-non-constant-format/
Non-virtual destructor in base classhttps://codeql.github.com/codeql-query-help/cpp/cpp-virtual-destructor/
Not enough memory allocated for array of pointer typehttps://codeql.github.com/codeql-query-help/cpp/cpp-suspicious-allocation-size/
Not enough memory allocated for pointer typehttps://codeql.github.com/codeql-query-help/cpp/cpp-allocation-too-small/
Overloaded assignment does not return ‘this’https://codeql.github.com/codeql-query-help/cpp/cpp-assignment-does-not-return-this/
Overrunning writehttps://codeql.github.com/codeql-query-help/cpp/cpp-overrun-write/
Pointer overflow checkhttps://codeql.github.com/codeql-query-help/cpp/cpp-pointer-overflow-check/
Poorly documented large functionhttps://codeql.github.com/codeql-query-help/cpp/cpp-poorly-documented-function/
Possibly wrong buffer size in string copyhttps://codeql.github.com/codeql-query-help/cpp/cpp-bad-strncpy-size/
Potential double freehttps://codeql.github.com/codeql-query-help/cpp/cpp-double-free/
Potential exposure of sensitive system data to an unauthorized control spherehttps://codeql.github.com/codeql-query-help/cpp/cpp-potential-system-data-exposure/
Potential use after freehttps://codeql.github.com/codeql-query-help/cpp/cpp-use-after-free/
Potentially overflowing call to snprintfhttps://codeql.github.com/codeql-query-help/cpp/cpp-overflowing-snprintf/
Potentially overrunning writehttps://codeql.github.com/codeql-query-help/cpp/cpp-overrunning-write/
Potentially overrunning write with float to string conversionhttps://codeql.github.com/codeql-query-help/cpp/cpp-overrunning-write-with-float/
Potentially uninitialized local variablehttps://codeql.github.com/codeql-query-help/cpp/cpp-uninitialized-local/
Potentially unsafe call to strncathttps://codeql.github.com/codeql-query-help/cpp/cpp-unsafe-strncat/
Potentially unsafe use of strcathttps://codeql.github.com/codeql-query-help/cpp/cpp-unsafe-strcat/
Redefined default parameterhttps://codeql.github.com/codeql-query-help/cpp/cpp-redefined-default-parameter/
Redundant null check due to previous dereferencehttps://codeql.github.com/codeql-query-help/cpp/cpp-redundant-null-check-simple/
Resource not released in destructorhttps://codeql.github.com/codeql-query-help/cpp/cpp-resource-not-released-in-destructor/
Return c_str of local std::stringhttps://codeql.github.com/codeql-query-help/cpp/cpp-return-c-str-of-std-string/
Returning stack-allocated memoryhttps://codeql.github.com/codeql-query-help/cpp/cpp-return-stack-allocated-memory/
Self comparisonhttps://codeql.github.com/codeql-query-help/cpp/cpp-comparison-of-identical-expressions/
Setting a DACL to NULL in a SECURITY_DESCRIPTORhttps://codeql.github.com/codeql-query-help/cpp/cpp-unsafe-dacl-security-descriptor/
Short global namehttps://codeql.github.com/codeql-query-help/cpp/cpp-short-global-name/
Short-circuiting operator applied to flaghttps://codeql.github.com/codeql-query-help/cpp/cpp-logical-operator-applied-to-flag/
Sign check of bitwise operationhttps://codeql.github.com/codeql-query-help/cpp/cpp-bitwise-sign-check/
Signed overflow checkhttps://codeql.github.com/codeql-query-help/cpp/cpp-signed-overflow-check/
Sizeof with side effectshttps://codeql.github.com/codeql-query-help/cpp/cpp-sizeof-side-effect/
Slicinghttps://codeql.github.com/codeql-query-help/cpp/cpp-slicing/
Static array access may cause overflowhttps://codeql.github.com/codeql-query-help/cpp/cpp-static-buffer-overflow/
Suspicious ‘sizeof’ usehttps://codeql.github.com/codeql-query-help/cpp/cpp-suspicious-sizeof/
Suspicious add with sizeofhttps://codeql.github.com/codeql-query-help/cpp/cpp-suspicious-add-sizeof/
Suspicious pointer scalinghttps://codeql.github.com/codeql-query-help/cpp/cpp-suspicious-pointer-scaling/
Suspicious pointer scaling to voidhttps://codeql.github.com/codeql-query-help/cpp/cpp-suspicious-pointer-scaling-void/
Throwing pointershttps://codeql.github.com/codeql-query-help/cpp/cpp-throwing-pointer/
Time-of-check time-of-use filesystem race conditionhttps://codeql.github.com/codeql-query-help/cpp/cpp-toctou-race-condition/
Too few arguments to formatting functionhttps://codeql.github.com/codeql-query-help/cpp/cpp-wrong-number-format-arguments/
Too many arguments to formatting functionhttps://codeql.github.com/codeql-query-help/cpp/cpp-too-many-format-arguments/
Type confusionhttps://codeql.github.com/codeql-query-help/cpp/cpp-type-confusion/
Unbounded writehttps://codeql.github.com/codeql-query-help/cpp/cpp-unbounded-write/
Unchecked return value for time conversion functionhttps://codeql.github.com/codeql-query-help/cpp/cpp-leap-year-unchecked-return-value-for-time-conversion-function/
Unclear comparison precedencehttps://codeql.github.com/codeql-query-help/cpp/cpp-comparison-precedence/
Uncontrolled allocation sizehttps://codeql.github.com/codeql-query-help/cpp/cpp-uncontrolled-allocation-size/
Uncontrolled data in SQL queryhttps://codeql.github.com/codeql-query-help/cpp/cpp-sql-injection/
Uncontrolled data in arithmetic expressionhttps://codeql.github.com/codeql-query-help/cpp/cpp-uncontrolled-arithmetic/
Uncontrolled data used in OS commandhttps://codeql.github.com/codeql-query-help/cpp/cpp-command-line-injection/
Uncontrolled data used in path expressionhttps://codeql.github.com/codeql-query-help/cpp/cpp-path-injection/
Uncontrolled format stringhttps://codeql.github.com/codeql-query-help/cpp/cpp-tainted-format-string/
Uncontrolled process operationhttps://codeql.github.com/codeql-query-help/cpp/cpp-uncontrolled-process-operation/
Undisciplined multiple inheritancehttps://codeql.github.com/codeql-query-help/cpp/cpp-undisciplined-multiple-inheritance/
Unsafe use of this in constructorhttps://codeql.github.com/codeql-query-help/cpp/cpp-unsafe-use-of-this/
Unsigned comparison to zerohttps://codeql.github.com/codeql-query-help/cpp/cpp-unsigned-comparison-zero/
Unsigned difference expression compared to zerohttps://codeql.github.com/codeql-query-help/cpp/cpp-unsigned-difference-expression-compared-zero/
Unterminated variadic callhttps://codeql.github.com/codeql-query-help/cpp/cpp-unterminated-variadic-call/
Untrusted input for a conditionhttps://codeql.github.com/codeql-query-help/cpp/cpp-tainted-permissions-check/
Unused local variablehttps://codeql.github.com/codeql-query-help/cpp/cpp-unused-local-variable/
Unused static functionhttps://codeql.github.com/codeql-query-help/cpp/cpp-unused-static-function/
Unused static variablehttps://codeql.github.com/codeql-query-help/cpp/cpp-unused-static-variable/
Upcast array used in pointer arithmetichttps://codeql.github.com/codeql-query-help/cpp/cpp-upcast-array-pointer-arithmetic/
Use of a broken or risky cryptographic algorithmhttps://codeql.github.com/codeql-query-help/cpp/cpp-weak-cryptographic-algorithm/
Use of a cryptographic algorithm with insufficient key sizehttps://codeql.github.com/codeql-query-help/cpp/cpp-insufficient-key-size/
Use of a version of OpenSSL with Heartbleedhttps://codeql.github.com/codeql-query-help/cpp/cpp-openssl-heartbleed/
Use of dangerous functionhttps://codeql.github.com/codeql-query-help/cpp/cpp-dangerous-function-overflow/
Use of expired stack-addresshttps://codeql.github.com/codeql-query-help/cpp/cpp-using-expired-stack-address/
Use of gotohttps://codeql.github.com/codeql-query-help/cpp/cpp-use-of-goto/
Use of integer where enum is preferredhttps://codeql.github.com/codeql-query-help/cpp/cpp-integer-used-for-enum/
Use of potentially dangerous functionhttps://codeql.github.com/codeql-query-help/cpp/cpp-potentially-dangerous-function/
Use of string after lifetime endshttps://codeql.github.com/codeql-query-help/cpp/cpp-use-of-string-after-lifetime-ends/
Use of string copy function in a conditionhttps://codeql.github.com/codeql-query-help/cpp/cpp-string-copy-return-value-as-boolean/
Use of unique pointer after lifetime endshttps://codeql.github.com/codeql-query-help/cpp/cpp-use-of-unique-pointer-after-lifetime-ends/
Variable used in its own initializerhttps://codeql.github.com/codeql-query-help/cpp/cpp-use-in-own-initializer/
Virtual call from constructor or destructorhttps://codeql.github.com/codeql-query-help/cpp/cpp-virtual-call-in-constructor/
Wrong type of arguments to formatting functionhttps://codeql.github.com/codeql-query-help/cpp/cpp-wrong-type-format-argument/
XML external entity expansionhttps://codeql.github.com/codeql-query-help/cpp/cpp-external-entity-expansion/
Year field changed using an arithmetic operation without checking for leap yearhttps://codeql.github.com/codeql-query-help/cpp/cpp-leap-year-unchecked-after-arithmetic-year-modification/
boost::asio TLS settings misconfigurationhttps://codeql.github.com/codeql-query-help/cpp/cpp-boost-tls-settings-misconfiguration/
boost::asio use of deprecated hardcoded protocolhttps://codeql.github.com/codeql-query-help/cpp/cpp-boost-use-of-deprecated-hardcoded-security-protocol/
CodeQL query help for C#https://codeql.github.com/codeql-query-help/csharp/
CodeQL query help for GitHub Actionshttps://codeql.github.com/codeql-query-help/actions/
CodeQL query help for Gohttps://codeql.github.com/codeql-query-help/go/
CodeQL query help for Java and Kotlinhttps://codeql.github.com/codeql-query-help/java/
CodeQL query help for JavaScript and TypeScripthttps://codeql.github.com/codeql-query-help/javascript/
CodeQL query help for Pythonhttps://codeql.github.com/codeql-query-help/python/
CodeQL query help for Rubyhttps://codeql.github.com/codeql-query-help/ruby/
CodeQL query help for Rusthttps://codeql.github.com/codeql-query-help/rust/
CodeQL query help for Swifthttps://codeql.github.com/codeql-query-help/swift/
CodeQL CWE coveragehttps://codeql.github.com/codeql-query-help/codeql-cwe-coverage/
CodeQL query help documentationhttps://codeql.github.com/codeql-query-help/
CodeQL query help for C and C++https://codeql.github.com/codeql-query-help/cpp/
https://codeql.github.com/codeql-query-help/cpp/cpp-loop-variable-changed/#for-loop-variable-changed-in-body
Click to see the query in the CodeQL repositoryhttps://github.com/github/codeql/blob/main/cpp/ql/src/jsf/4.24%20Control%20Flow%20Structures/AV%20Rule%20201.ql
https://codeql.github.com/codeql-query-help/cpp/cpp-loop-variable-changed/#recommendation
https://codeql.github.com/codeql-query-help/cpp/cpp-loop-variable-changed/#example
https://codeql.github.com/codeql-query-help/cpp/cpp-loop-variable-changed/#references
For statementshttp://www.learncpp.com/cpp-tutorial/57-for-statements/
PDFhttps://web.archive.org/web/20190919025638/https://mongers.org/industrial-c++/
https://twitter.com/github
https://www.facebook.com/GitHub
https://www.youtube.com/github
https://www.linkedin.com/company/github
https://github.com/github
Terms https://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacy https://docs.github.com/site-policy/privacy-policies/github-privacy-statement

Viewport: width=device-width, initial-scale=1


URLs of crawlers that visited me.