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

Skip to content

Commit b6b90b5

Browse files
authored
C++: Model bsl functions in SmartPointer.qll.
1 parent 9b8d94d commit b6b90b5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import semmle.code.cpp.models.interfaces.Taint
44
* The `std::shared_ptr` and `std::unique_ptr` template classes.
55
*/
66
private class UniqueOrSharedPtr extends Class {
7-
UniqueOrSharedPtr() { this.hasQualifiedName("std", ["shared_ptr", "unique_ptr"]) }
7+
UniqueOrSharedPtr() { this.hasQualifiedName(["std", "bsl"], ["shared_ptr", "unique_ptr"]) }
88
}
99

1010
/**
1111
* The `std::make_shared` and `std::make_unique` template functions.
1212
*/
1313
private class MakeUniqueOrShared extends TaintFunction {
14-
MakeUniqueOrShared() { this.hasQualifiedName("std", ["make_shared", "make_unique"]) }
14+
MakeUniqueOrShared() { this.hasQualifiedName(["bsl", "std"], ["make_shared", "make_unique"]) }
1515

1616
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
1717
// Exclude the specializations of `std::make_shared` and `std::make_unique` that allocate arrays

0 commit comments

Comments
 (0)