Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2a3d20d

Browse files
committed
C++: Refactor Memset.qll and include bsl model.
1 parent 9b8d94d commit 2a3d20d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • cpp/ql/src/semmle/code/cpp/models/implementations

cpp/ql/src/semmle/code/cpp/models/implementations/Memset.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ import semmle.code.cpp.models.interfaces.SideEffect
1515
private class MemsetFunction extends ArrayFunction, DataFlowFunction, AliasFunction,
1616
SideEffectFunction {
1717
MemsetFunction() {
18-
this.hasGlobalOrStdName(["memset", "wmemset"])
18+
this.hasQualifiedName(["", "std", "bsl"], "memset")
19+
or
20+
this.hasGlobalOrStdName("wmemset")
1921
or
2022
this.hasGlobalName([bzero(), "__builtin_memset", "__builtin_memset_chk"])
2123
}

0 commit comments

Comments
 (0)