Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce9abe0 commit fb9a3b3Copy full SHA for fb9a3b3
1 file changed
cpp/ql/src/semmle/code/cpp/models/implementations/Memcpy.qll
@@ -16,13 +16,9 @@ import semmle.code.cpp.models.interfaces.Taint
16
class MemcpyFunction extends ArrayFunction, DataFlowFunction, SideEffectFunction {
17
MemcpyFunction() {
18
// memcpy(dest, src, num)
19
- this.hasName("memcpy")
20
- or
21
// memmove(dest, src, num)
22
- this.hasName("memmove")
23
24
// memmove(dest, src, num, remaining)
25
- this.hasName("__builtin___memcpy_chk")
+ this.hasName(["memcpy", "memmove", "__builtin___memcpy_chk"])
26
or
27
// bcopy(src, dest, num)
28
this.hasGlobalOrStdName("bcopy")
0 commit comments