Skip to content

Commit 9499961

Browse files
authored
Update BufferAccessWithIncorrectLengthValue.ql
1 parent d489c12 commit 9499961

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cpp/ql/src/experimental/Security/CWE/CWE-805/BufferAccessWithIncorrectLengthValue.ql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ predicate numberArgument(Function f, int bpos, int spos) {
4242
or
4343
f.hasGlobalOrStdName(["AES_ige_encrypt", "memchr"]) and bpos = 0 and spos = 2
4444
or
45-
f.hasGlobalOrStdName(["EVP_MAC_final"]) and bpos = 1 and spos = 3
45+
f.hasGlobalOrStdName("EVP_MAC_final") and bpos = 1 and spos = 3
4646
or
47-
f.hasGlobalOrStdName(["OBJ_obj2txt"]) and bpos = 2 and spos = 1
47+
f.hasGlobalOrStdName("OBJ_obj2txt") and bpos = 2 and spos = 1
4848
or
49-
f.hasGlobalOrStdName(["EVP_CIPHER_CTX_ctrl"]) and bpos = 3 and spos = 2
49+
f.hasGlobalOrStdName("EVP_CIPHER_CTX_ctrl") and bpos = 3 and spos = 2
5050
or
5151
f.hasGlobalOrStdName(["EVP_PKEY_get_octet_string_param", "getnameinfo"]) and bpos = 2 and spos = 3
5252
or
@@ -57,7 +57,7 @@ predicate numberArgument(Function f, int bpos, int spos) {
5757
bpos = 3 and
5858
spos = 4
5959
or
60-
f.hasGlobalOrStdName(["getnameinfo"]) and bpos = 4 and spos = 5
60+
f.hasGlobalOrStdName("getnameinfo") and bpos = 4 and spos = 5
6161
}
6262

6363
from FunctionCall fc

0 commit comments

Comments
 (0)