Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit 6310c8b

Browse files
committed
Step 12
1 parent 1361480 commit 6310c8b

File tree

5 files changed

+15
-1
lines changed

5 files changed

+15
-1
lines changed

courses/cpp/uboot/answers/step-12.ql

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* @kind problem
3+
*/
4+
5+
import cpp
6+
7+
from Function f
8+
where f.getName() = "memcpy"
9+
select f, "a function named memcpy"

courses/cpp/uboot/image/config/config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"databasePath": "u-boot_u-boot_d0d07ba",
33
"locationPaths": "https://github.com/u-boot/u-boot/blob/d0d07ba86afc8074d79e436b1ba4478fa0f0c1b5{path}#L{line-start}-L{line-end}",
44
"expectedResults": {
5-
"step-01.ql": "step-01.csv"
5+
"step-11.ql": "step-11.csv",
6+
"step-12.ql": "step-12.csv"
67
}
78
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"f","URL for f","col1"
2+
"memcpy","file:///opt/src/lib/string.c:532:8:532:13","a function named memcpy"
3+
"memcpy","file:///usr/x86_64-linux-gnu/include/bits/string_fortified.h:31:8:31:13","a function named memcpy"
4+
"memcpy","file:///usr/x86_64-linux-gnu/include/bits/string_fortified.h:31:8:31:13","a function named memcpy"

0 commit comments

Comments
 (0)