Skip to content

Commit 9b61650

Browse files
authored
Merge pull request github#3298 from MathiasVP/no-inline-std-string-constructor
C++: Add pragma[noinline] to StdStringConstructor
2 parents 962f13e + 7ba4526 commit 9b61650

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import semmle.code.cpp.models.interfaces.Taint
44
* The `std::basic_string` constructor(s).
55
*/
66
class StdStringConstructor extends TaintFunction {
7+
pragma[noinline]
78
StdStringConstructor() { this.hasQualifiedName("std", "basic_string", "basic_string") }
89

910
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {

0 commit comments

Comments
 (0)