Skip to content

Commit d1272d3

Browse files
committed
C++: Use strictcount instead of count.
1 parent 4cb25d8 commit d1272d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cpp/ql/src/semmle/code/cpp/security/ExternalAPIs.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ExternalAPIUsedWithUntrustedData extends TExternalAPI {
3535

3636
/** Gets the number of untrusted sources used with this external API. */
3737
int getNumberOfUntrustedSources() {
38-
result = count(getUntrustedDataNode().getAnUntrustedSource())
38+
result = strictcount(getUntrustedDataNode().getAnUntrustedSource())
3939
}
4040

4141
/** Gets a textual representation of this element. */

cpp/ql/src/semmle/code/cpp/security/ir/ExternalAPIs.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ExternalAPIUsedWithUntrustedData extends TExternalAPI {
3535

3636
/** Gets the number of untrusted sources used with this external API. */
3737
int getNumberOfUntrustedSources() {
38-
result = count(getUntrustedDataNode().getAnUntrustedSource())
38+
result = strictcount(getUntrustedDataNode().getAnUntrustedSource())
3939
}
4040

4141
/** Gets a textual representation of this element. */

0 commit comments

Comments
 (0)