mirror of
https://github.com/github/codeql.git
synced 2025-12-22 03:36:30 +01:00
C++: Make output clearer in cases where the function name is a macro expansion (I've seen this more than once).
This commit is contained in:
@@ -82,4 +82,6 @@ where
|
||||
amount = strictcount(Expr e | computeHeuristic(e) and e.getEnclosingFunction() = f) and
|
||||
amount >= 8 and
|
||||
exists(f.getFile().getRelativePath()) // exclude library files
|
||||
select f, "This may be a custom implementation of a cryptographic primitive."
|
||||
select f,
|
||||
"This function, \"" + f.getName() +
|
||||
"\", may be a custom implementation of a cryptographic primitive."
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
| tests_crypto.cpp:11:6:11:18 | encryptString | This may be a custom implementation of a cryptographic primitive. |
|
||||
| tests_crypto.cpp:30:6:30:14 | MyEncrypt | This may be a custom implementation of a cryptographic primitive. |
|
||||
| tests_crypto.cpp:83:6:83:18 | init_aes_sbox | This may be a custom implementation of a cryptographic primitive. |
|
||||
| tests_crypto.cpp:11:6:11:18 | encryptString | This function, "encryptString", may be a custom implementation of a cryptographic primitive. |
|
||||
| tests_crypto.cpp:30:6:30:14 | MyEncrypt | This function, "MyEncrypt", may be a custom implementation of a cryptographic primitive. |
|
||||
| tests_crypto.cpp:83:6:83:18 | init_aes_sbox | This function, "init_aes_sbox", may be a custom implementation of a cryptographic primitive. |
|
||||
|
||||
Reference in New Issue
Block a user