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

Skip to content

Commit fb9a3b3

Browse files
committed
C++: Modernize MemcpyFunction.
1 parent ce9abe0 commit fb9a3b3

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

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

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,9 @@ import semmle.code.cpp.models.interfaces.Taint
1616
class MemcpyFunction extends ArrayFunction, DataFlowFunction, SideEffectFunction {
1717
MemcpyFunction() {
1818
// memcpy(dest, src, num)
19-
this.hasName("memcpy")
20-
or
2119
// memmove(dest, src, num)
22-
this.hasName("memmove")
23-
or
2420
// memmove(dest, src, num, remaining)
25-
this.hasName("__builtin___memcpy_chk")
21+
this.hasName(["memcpy", "memmove", "__builtin___memcpy_chk"])
2622
or
2723
// bcopy(src, dest, num)
2824
this.hasGlobalOrStdName("bcopy")

0 commit comments

Comments
 (0)