Commit 5fb6146
committed
address Code Scanning TOCTOU race and PR review feedback
- Eliminate filesystem race condition in search-ql-code.ts (read-then-check
instead of stat-then-read)
- Add symlink cycle detection using lstatSync and visited-path tracking
- Fix tool description field names in profile-codeql-query-from-logs.ts
({startLine,endLine} → detailLines: {start,end})
- Fix monitoring-state.json fixtures to use standard sessions format
- Rename find_qll_files → find_ql_files to match actual .ql extension1 parent 7775f49 commit 5fb6146
File tree
13 files changed
+84
-78
lines changed- client/integration-tests/primitives/tools
- codeql_resolve_files
- find_ql_files
- after
- before
- find_qll_files
- after
- before
- profile_codeql_query_from_logs
- multi_query_raw_log/after
- single_query_raw_log/after
- search_ql_code/search_predicate_name
- after
- before
- server
- dist
- src/tools/codeql
13 files changed
+84
-78
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
Lines changed: 12 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
23 | 14 | | |
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
10 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56702 | 56702 | | |
56703 | 56703 | | |
56704 | 56704 | | |
56705 | | - | |
| 56705 | + | |
56706 | 56706 | | |
56707 | 56707 | | |
56708 | 56708 | | |
| |||
61835 | 61835 | | |
61836 | 61836 | | |
61837 | 61837 | | |
61838 | | - | |
| 61838 | + | |
61839 | 61839 | | |
61840 | 61840 | | |
61841 | 61841 | | |
| |||
62805 | 62805 | | |
62806 | 62806 | | |
62807 | 62807 | | |
62808 | | - | |
| 62808 | + | |
62809 | 62809 | | |
62810 | 62810 | | |
62811 | 62811 | | |
62812 | 62812 | | |
62813 | 62813 | | |
62814 | 62814 | | |
| 62815 | + | |
62815 | 62816 | | |
62816 | 62817 | | |
62817 | 62818 | | |
62818 | 62819 | | |
62819 | | - | |
| 62820 | + | |
62820 | 62821 | | |
62821 | 62822 | | |
62822 | 62823 | | |
| 62824 | + | |
62823 | 62825 | | |
62824 | 62826 | | |
62825 | 62827 | | |
62826 | 62828 | | |
62827 | 62829 | | |
62828 | 62830 | | |
| 62831 | + | |
| 62832 | + | |
| 62833 | + | |
| 62834 | + | |
| 62835 | + | |
| 62836 | + | |
| 62837 | + | |
| 62838 | + | |
62829 | 62839 | | |
62830 | 62840 | | |
62831 | 62841 | | |
| |||
62845 | 62855 | | |
62846 | 62856 | | |
62847 | 62857 | | |
62848 | | - | |
62849 | | - | |
62850 | | - | |
62851 | | - | |
62852 | | - | |
62853 | | - | |
62854 | | - | |
62855 | | - | |
62856 | | - | |
62857 | 62858 | | |
62858 | 62859 | | |
62859 | 62860 | | |
62860 | 62861 | | |
62861 | 62862 | | |
62862 | 62863 | | |
| 62864 | + | |
| 62865 | + | |
| 62866 | + | |
62863 | 62867 | | |
62864 | 62868 | | |
62865 | 62869 | | |
| |||
66070 | 66074 | | |
66071 | 66075 | | |
66072 | 66076 | | |
66073 | | - | |
| 66077 | + | |
66074 | 66078 | | |
66075 | 66079 | | |
66076 | 66080 | | |
| |||
0 commit comments