- Notifications
You must be signed in to change notification settings - Fork70
Fix issues with c/qcc compatibility#289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
37 commits Select commitHold shift + click to select a range
848dfce Expected files for qcc
mbaludae4f899d Compilation issue with RULE-1-2
mbaluda77c2966 Merge branch 'github:main' into qcc-expected
mbaluda40f0b39 EXP39-C add `.expected.qcc` file
mbaludad78c6fb RULE-21-4: `longjmp` can be a macro or a function
mbaludab461260 RULE-21-4: fix `qcc` expected file
mbaluda46c3332 ENV32-C: exit functions can be macros
mbaludac5e6c00 ENV32-C: expectd.qcc file
mbaluda01661b9 FIO34-C: `qcc` support
mbaluda13a5c61 ERR33-C: library can access stdin by reference
mbaluda3998276 FIO47-C: Add `.expected.qcc` file
mbaluda63c9c7c Undo changes to FileAccess.qll
mbaluda3b70892 FIO-46: file as expression
mbaluda3cef6ca STR34-C: Add `.expected.qcc` file based on the `gcc` one
mbaludaced2ee9 STR34-C: fix `.expected.qcc` file
mbaludac9a4283 Add tempfiles for matrix testing
mbaludaef7d949 Add `.expected.qcc` for `donotaccessaclosedfile`
mbaludac01c254 fixed for shared queries.
jsinglet333ae99 more fixes
jsinglet6d7ce9e issue issue
jsingletd9bdde8 RULE-10-6: Fix output string format
mbaluda47b26c9 Merge branch 'qcc-expected' of https://github.com/mbaluda-org/codeql-…
mbaluda4cd4896 STR37-C: toupper/tolower
mbaludaf21c5cf EXP43-C: Add explicitly mentioned functions
mbaluda723c25e Create tempfile
mbaluda1ad13b0 Create tempfile
mbaluda6f65975 gix expect file
mbaluda2da6808 Merge branch 'qcc-expected' of https://github.com/mbaluda-org/codeql-…
mbaluda8f35e45 RULE-11-1 RULE-11-2 RULE-11-5:
mbaludaca07311 STR32-C STR38-C:
mbaludaf8a3ce9 Add `change_notes` file
mbaluda8c0b1bf STR38-C: fix expected file
mbaluda8681147 Fix expected file
mbaludab3b0030 Removing temp files
mbaludaba2b58a STR38-C: fix expected file
mbaluda0cbf676 Update README.md
jsinglet248683a Fix clang compilation issues:
mbaludaFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
2 changes: 1 addition & 1 deletion.github/workflows/dispatch-matrix-test-on-comment.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletionsREADME.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
42 changes: 27 additions & 15 deletionsc/cert/src/rules/ENV32-C/ExitHandlersMustReturnNormally.ql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletionc/cert/src/rules/ERR33-C/DetectAndHandleStandardLibraryErrors.ql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
21 changes: 19 additions & 2 deletionsc/cert/src/rules/EXP43-C/DoNotPassAliasedPointerToRestrictQualifiedParam.ql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletionc/cert/src/rules/STR32-C/NonNullTerminatedToFunctionThatExpectsAString.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletionc/cert/src/rules/STR38-C/DoNotConfuseNarrowAndWideFunctions.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletionsc/cert/src/rules/STR38-C/DoNotConfuseNarrowAndWideFunctions.ql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletionsc/cert/test/rules/ARR39-C/DoNotAddOrSubtractAScaledIntegerToAPointer.expected.qcc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| edges | ||
| | test.c:7:13:7:14 | p1 | test.c:9:9:9:10 | p1 | | ||
| | test.c:16:19:16:41 | __builtin_offsetof | test.c:18:26:18:31 | offset | | ||
| | test.c:16:19:16:41 | __builtin_offsetof | test.c:29:6:29:11 | offset | | ||
| | test.c:17:17:17:26 | sizeof(<expr>) | test.c:23:9:23:12 | size | | ||
| | test.c:29:6:29:11 | offset | test.c:7:13:7:14 | p1 | | ||
| nodes | ||
| | test.c:7:13:7:14 | p1 | semmle.label | p1 | | ||
| | test.c:9:9:9:10 | p1 | semmle.label | p1 | | ||
| | test.c:16:19:16:41 | __builtin_offsetof | semmle.label | __builtin_offsetof | | ||
| | test.c:17:17:17:26 | sizeof(<expr>) | semmle.label | sizeof(<expr>) | | ||
| | test.c:18:26:18:31 | offset | semmle.label | offset | | ||
| | test.c:23:9:23:12 | size | semmle.label | size | | ||
| | test.c:25:9:25:18 | sizeof(<expr>) | semmle.label | sizeof(<expr>) | | ||
| | test.c:27:17:27:26 | sizeof(<expr>) | semmle.label | sizeof(<expr>) | | ||
| | test.c:29:6:29:11 | offset | semmle.label | offset | | ||
| subpaths | ||
| #select | ||
| | test.c:9:9:9:10 | p1 | test.c:16:19:16:41 | __builtin_offsetof | test.c:9:9:9:10 | p1 | Scaled integer used in pointer arithmetic. | | ||
| | test.c:18:26:18:31 | offset | test.c:16:19:16:41 | __builtin_offsetof | test.c:18:26:18:31 | offset | Scaled integer used in pointer arithmetic. | | ||
| | test.c:23:9:23:12 | size | test.c:17:17:17:26 | sizeof(<expr>) | test.c:23:9:23:12 | size | Scaled integer used in pointer arithmetic. | | ||
| | test.c:25:9:25:18 | sizeof(<expr>) | test.c:25:9:25:18 | sizeof(<expr>) | test.c:25:9:25:18 | sizeof(<expr>) | Scaled integer used in pointer arithmetic. | | ||
| | test.c:27:17:27:26 | sizeof(<expr>) | test.c:27:17:27:26 | sizeof(<expr>) | test.c:27:17:27:26 | sizeof(<expr>) | Scaled integer used in pointer arithmetic. | |
6 changes: 6 additions & 0 deletionsc/cert/test/rules/CON40-C/AtomicVariableTwiceInExpression.expected.qcc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| | test.c:7:18:7:39 | ATOMIC_VAR_INIT(VALUE) | Atomic variable possibly referred to twice in an $@. | test.c:33:3:33:10 | ... += ... | expression | | ||
| | test.c:7:18:7:39 | ATOMIC_VAR_INIT(VALUE) | Atomic variable possibly referred to twice in an $@. | test.c:34:3:34:13 | ... = ... | expression | | ||
| | test.c:11:3:11:23 | atomic_store(PTR,VAL) | Atomic variable possibly referred to twice in an $@. | test.c:11:3:11:23 | atomic_store(PTR,VAL) | expression | | ||
| | test.c:12:3:12:35 | atomic_store_explicit(PTR,VAL,MO) | Atomic variable possibly referred to twice in an $@. | test.c:12:3:12:35 | atomic_store_explicit(PTR,VAL,MO) | expression | | ||
| | test.c:25:3:25:49 | atomic_compare_exchange_weak(PTR,VAL,DES) | Atomic variable possibly referred to twice in an $@. | test.c:25:3:25:49 | atomic_compare_exchange_weak(PTR,VAL,DES) | expression | | ||
| | test.c:26:3:27:42 | atomic_compare_exchange_weak_explicit(PTR,VAL,DES,SUC,FAIL) | Atomic variable possibly referred to twice in an $@. | test.c:26:3:27:42 | atomic_compare_exchange_weak_explicit(PTR,VAL,DES,SUC,FAIL) | expression | |
4 changes: 4 additions & 0 deletionsc/cert/test/rules/CON41-C/WrapFunctionsThatCanFailSpuriouslyInLoop.expected.qcc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| | test.c:6:8:6:46 | atomic_compare_exchange_weak(PTR,VAL,DES) | Function that can spuriously fail not wrapped in a loop. | | ||
| | test.c:10:3:10:41 | atomic_compare_exchange_weak(PTR,VAL,DES) | Function that can spuriously fail not wrapped in a loop. | | ||
| | test.c:12:8:13:47 | atomic_compare_exchange_weak_explicit(PTR,VAL,DES,SUC,FAIL) | Function that can spuriously fail not wrapped in a loop. | | ||
| | test.c:17:3:17:56 | atomic_compare_exchange_weak_explicit(PTR,VAL,DES,SUC,FAIL) | Function that can spuriously fail not wrapped in a loop. | |
13 changes: 13 additions & 0 deletionsc/cert/test/rules/ENV32-C/ExitHandlersMustReturnNormally.expected.qcc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| edges | ||
| | test.c:8:6:8:13 | exit1bad | test.c:11:5:11:8 | call to exit | | ||
| | test.c:20:14:20:21 | exit1bad | test.c:8:6:8:13 | exit1bad | | ||
| | test.c:41:6:41:10 | exit2 | test.c:42:3:42:17 | call to siglongjmp | | ||
| | test.c:46:21:46:25 | exit2 | test.c:41:6:41:10 | exit2 | | ||
| | test.c:62:6:62:17 | exit3_helper | test.c:62:27:62:41 | call to siglongjmp | | ||
| | test.c:64:6:64:10 | exit3 | test.c:65:3:65:14 | call to exit3_helper | | ||
| | test.c:65:3:65:14 | call to exit3_helper | test.c:62:6:62:17 | exit3_helper | | ||
| | test.c:69:14:69:18 | exit3 | test.c:64:6:64:10 | exit3 | | ||
| #select | ||
| | test.c:8:6:8:13 | exit1bad | test.c:20:14:20:21 | exit1bad | test.c:11:5:11:8 | call to exit | The function is $@ and $@. It must instead terminate by returning. | test.c:20:14:20:21 | exit1bad | registered as `exit handler` | test.c:11:5:11:8 | call to exit | calls an `exit function` | | ||
| | test.c:41:6:41:10 | exit2 | test.c:46:21:46:25 | exit2 | test.c:42:3:42:17 | call to siglongjmp | The function is $@ and $@. It must instead terminate by returning. | test.c:46:21:46:25 | exit2 | registered as `exit handler` | test.c:42:3:42:17 | call to siglongjmp | calls an `exit function` | | ||
| | test.c:64:6:64:10 | exit3 | test.c:69:14:69:18 | exit3 | test.c:62:27:62:41 | call to siglongjmp | The function is $@ and $@. It must instead terminate by returning. | test.c:69:14:69:18 | exit3 | registered as `exit handler` | test.c:62:27:62:41 | call to siglongjmp | calls an `exit function` | |
3 changes: 3 additions & 0 deletionsc/cert/test/rules/ERR30-C/ErrnoReadBeforeReturn.expected.qcc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| | test.c:69:7:69:11 | * ... | Do not read `errno` before checking the return value of function $@. | test.c:68:3:68:7 | call to ftell | call to ftell | | ||
| | test.c:69:7:69:11 | call to __get_errno_ptr | Do not read `errno` before checking the return value of function $@. | test.c:68:3:68:7 | call to ftell | call to ftell | | ||
| | test.c:70:5:70:10 | call to perror | Do not read `errno` before checking the return value of function $@. | test.c:68:3:68:7 | call to ftell | call to ftell | |
62 changes: 62 additions & 0 deletionsc/cert/test/rules/EXP39-C/DoNotAccessVariableViaPointerOfIncompatibleType.expected.qcc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| edges | ||
| | test.c:49:8:49:9 | s3 | test.c:50:8:50:9 | s1 | | ||
| | test.c:60:16:60:18 | E1A | test.c:61:16:61:17 | e1 | | ||
| | test.c:60:16:60:18 | E1A | test.c:65:10:65:12 | & ... | | ||
| | test.c:68:22:68:22 | v | test.c:68:41:68:41 | v | | ||
| | test.c:72:13:72:15 | & ... | test.c:68:22:68:22 | v | | ||
| | test.c:74:13:74:15 | & ... | test.c:68:22:68:22 | v | | ||
| | test.c:97:32:97:37 | call to malloc | test.c:98:40:98:41 | s2 | | ||
| | test.c:97:32:97:37 | call to malloc | test.c:98:40:98:41 | s2 | | ||
| | test.c:98:32:98:38 | call to realloc | test.c:99:3:99:4 | s3 | | ||
| | test.c:98:32:98:38 | call to realloc | test.c:100:10:100:11 | s3 | | ||
| | test.c:98:40:98:41 | s2 | test.c:98:32:98:38 | call to realloc | | ||
| nodes | ||
| | file:///opt/qcc/qnx-sdp/target/qnx7/usr/include/stdlib.h:98:42:98:47 | __func | semmle.label | __func | | ||
| | file:///opt/qcc/qnx-sdp/target/qnx7/usr/include/stdlib.h:98:50:98:53 | 0 | semmle.label | 0 | | ||
| | test.c:6:19:6:20 | & ... | semmle.label | & ... | | ||
| | test.c:11:10:11:11 | & ... | semmle.label | & ... | | ||
| | test.c:13:17:13:19 | & ... | semmle.label | & ... | | ||
| | test.c:15:17:15:19 | & ... | semmle.label | & ... | | ||
| | test.c:19:18:19:20 | & ... | semmle.label | & ... | | ||
| | test.c:20:20:20:22 | & ... | semmle.label | & ... | | ||
| | test.c:22:11:22:13 | & ... | semmle.label | & ... | | ||
| | test.c:27:17:27:19 | & ... | semmle.label | & ... | | ||
| | test.c:28:10:28:12 | & ... | semmle.label | & ... | | ||
| | test.c:29:13:29:15 | & ... | semmle.label | & ... | | ||
| | test.c:30:19:30:21 | & ... | semmle.label | & ... | | ||
| | test.c:31:16:31:18 | & ... | semmle.label | & ... | | ||
| | test.c:47:8:47:9 | s2 | semmle.label | s2 | | ||
| | test.c:49:8:49:9 | s3 | semmle.label | s3 | | ||
| | test.c:49:8:49:9 | s3 | semmle.label | s3 | | ||
| | test.c:50:8:50:9 | s1 | semmle.label | s1 | | ||
| | test.c:60:16:60:18 | E1A | semmle.label | E1A | | ||
| | test.c:60:16:60:18 | E1A | semmle.label | E1A | | ||
| | test.c:61:16:61:17 | e1 | semmle.label | e1 | | ||
| | test.c:65:10:65:12 | & ... | semmle.label | & ... | | ||
| | test.c:68:22:68:22 | v | semmle.label | v | | ||
| | test.c:68:41:68:41 | v | semmle.label | v | | ||
| | test.c:72:13:72:15 | & ... | semmle.label | & ... | | ||
| | test.c:72:13:72:15 | & ... | semmle.label | & ... | | ||
| | test.c:74:13:74:15 | & ... | semmle.label | & ... | | ||
| | test.c:74:13:74:15 | & ... | semmle.label | & ... | | ||
| | test.c:97:32:97:37 | call to malloc | semmle.label | call to malloc | | ||
| | test.c:97:32:97:37 | call to malloc | semmle.label | call to malloc | | ||
| | test.c:98:32:98:38 | call to realloc | semmle.label | call to realloc | | ||
| | test.c:98:32:98:38 | call to realloc | semmle.label | call to realloc | | ||
| | test.c:98:32:98:38 | call to realloc | semmle.label | call to realloc | | ||
| | test.c:98:40:98:41 | s2 | semmle.label | s2 | | ||
| | test.c:98:40:98:41 | s2 | semmle.label | s2 | | ||
| | test.c:99:3:99:4 | s3 | semmle.label | s3 | | ||
| | test.c:100:10:100:11 | s3 | semmle.label | s3 | | ||
| subpaths | ||
| #select | ||
| | test.c:6:19:6:20 | & ... | test.c:6:19:6:20 | & ... | test.c:6:19:6:20 | & ... | Cast from float to int results in an incompatible pointer base type. | | ||
| | test.c:11:10:11:11 | & ... | test.c:11:10:11:11 | & ... | test.c:11:10:11:11 | & ... | Cast from short[2] to int results in an incompatible pointer base type. | | ||
| | test.c:13:17:13:19 | & ... | test.c:13:17:13:19 | & ... | test.c:13:17:13:19 | & ... | Cast from short[2] to short[4] results in an incompatible pointer base type. | | ||
| | test.c:19:18:19:20 | & ... | test.c:19:18:19:20 | & ... | test.c:19:18:19:20 | & ... | Cast from char to signed char results in an incompatible pointer base type. | | ||
| | test.c:30:19:30:21 | & ... | test.c:30:19:30:21 | & ... | test.c:30:19:30:21 | & ... | Cast from int to unsigned int results in an incompatible pointer base type. | | ||
| | test.c:47:8:47:9 | s2 | test.c:47:8:47:9 | s2 | test.c:47:8:47:9 | s2 | Cast from struct <unnamed> to struct <unnamed> results in an incompatible pointer base type. | | ||
| | test.c:49:8:49:9 | s3 | test.c:49:8:49:9 | s3 | test.c:49:8:49:9 | s3 | Cast from S1 to struct <unnamed> results in an incompatible pointer base type. | | ||
| | test.c:50:8:50:9 | s1 | test.c:50:8:50:9 | s1 | test.c:50:8:50:9 | s1 | Cast from struct <unnamed> to S1 results in an incompatible pointer base type. | | ||
| | test.c:68:41:68:41 | v | test.c:72:13:72:15 | & ... | test.c:68:41:68:41 | v | Cast from float to int results in an incompatible pointer base type. | | ||
| | test.c:99:3:99:4 | s3 | test.c:98:40:98:41 | s2 | test.c:99:3:99:4 | s3 | Cast from S2 to S3 results in an incompatible pointer base type. | |
40 changes: 40 additions & 0 deletionsc/cert/test/rules/FIO32-C/DoNotPerformFileOperationsOnDevices.expected.qcc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| edges | ||
| | test.c:20:15:20:23 | array to pointer conversion | test.c:21:8:21:16 | (const char *)... | | ||
| | test.c:20:15:20:23 | array to pointer conversion | test.c:21:8:21:16 | file_name | | ||
| | test.c:20:15:20:23 | array to pointer conversion | test.c:21:8:21:16 | file_name indirection | | ||
| | test.c:20:15:20:23 | file_name | test.c:21:8:21:16 | (const char *)... | | ||
| | test.c:20:15:20:23 | file_name | test.c:21:8:21:16 | file_name | | ||
| | test.c:20:15:20:23 | file_name | test.c:21:8:21:16 | file_name indirection | | ||
| | test.c:20:15:20:23 | scanf output argument | test.c:21:8:21:16 | (const char *)... | | ||
| | test.c:20:15:20:23 | scanf output argument | test.c:21:8:21:16 | file_name | | ||
| | test.c:20:15:20:23 | scanf output argument | test.c:21:8:21:16 | file_name indirection | | ||
| | test.c:45:15:45:23 | array to pointer conversion | test.c:46:29:46:37 | (LPCTSTR)... | | ||
| | test.c:45:15:45:23 | array to pointer conversion | test.c:46:29:46:37 | file_name | | ||
| | test.c:45:15:45:23 | array to pointer conversion | test.c:46:29:46:37 | file_name indirection | | ||
| | test.c:45:15:45:23 | file_name | test.c:46:29:46:37 | (LPCTSTR)... | | ||
| | test.c:45:15:45:23 | file_name | test.c:46:29:46:37 | file_name | | ||
| | test.c:45:15:45:23 | file_name | test.c:46:29:46:37 | file_name indirection | | ||
| | test.c:45:15:45:23 | scanf output argument | test.c:46:29:46:37 | (LPCTSTR)... | | ||
| | test.c:45:15:45:23 | scanf output argument | test.c:46:29:46:37 | file_name | | ||
| | test.c:45:15:45:23 | scanf output argument | test.c:46:29:46:37 | file_name indirection | | ||
| subpaths | ||
| nodes | ||
| | test.c:20:15:20:23 | array to pointer conversion | semmle.label | array to pointer conversion | | ||
| | test.c:20:15:20:23 | file_name | semmle.label | file_name | | ||
| | test.c:20:15:20:23 | scanf output argument | semmle.label | scanf output argument | | ||
| | test.c:21:8:21:16 | (const char *)... | semmle.label | (const char *)... | | ||
| | test.c:21:8:21:16 | (const char *)... | semmle.label | (const char *)... | | ||
| | test.c:21:8:21:16 | file_name | semmle.label | file_name | | ||
| | test.c:21:8:21:16 | file_name indirection | semmle.label | file_name indirection | | ||
| | test.c:21:8:21:16 | file_name indirection | semmle.label | file_name indirection | | ||
| | test.c:45:15:45:23 | array to pointer conversion | semmle.label | array to pointer conversion | | ||
| | test.c:45:15:45:23 | file_name | semmle.label | file_name | | ||
| | test.c:45:15:45:23 | scanf output argument | semmle.label | scanf output argument | | ||
| | test.c:46:29:46:37 | (LPCTSTR)... | semmle.label | (LPCTSTR)... | | ||
| | test.c:46:29:46:37 | (LPCTSTR)... | semmle.label | (LPCTSTR)... | | ||
| | test.c:46:29:46:37 | file_name | semmle.label | file_name | | ||
| | test.c:46:29:46:37 | file_name indirection | semmle.label | file_name indirection | | ||
| | test.c:46:29:46:37 | file_name indirection | semmle.label | file_name indirection | | ||
| #select | ||
| | test.c:21:8:21:16 | file_name | test.c:20:15:20:23 | file_name | test.c:21:8:21:16 | file_name | This argument to a file access function is derived from $@ and then passed to func(file_name), which calls fopen(__filename) | test.c:20:15:20:23 | file_name | user input (scanf) | | ||
| | test.c:46:29:46:37 | file_name | test.c:45:15:45:23 | file_name | test.c:46:29:46:37 | file_name | This argument to a file access function is derived from $@ and then passed to CreateFile(lpFileName) | test.c:45:15:45:23 | file_name | user input (scanf) | |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.