From 0994771974d686aa5395c5ba0fe71acef0d62e9d Mon Sep 17 00:00:00 2001 From: Zied Aouini Date: Wed, 22 Sep 2021 12:10:52 +0200 Subject: Improve CI (#1303) * Improve CI pipeline * Fix branch name. * Fix branch name. * Fix libgcrypt configuration. * Update build.yml * Move to Github Actions instead of Travis CI. * Fix mingw on ubuntu bionic. * Reactivate cross compile on Ubuntu Bionic. * Switch to single line steps. * Add several compilers versions * Minor fix. * Fix build all and delete cxx * Fix RCE detection. * Fix PCRE configuration. * Add condition on PCRE test pcap. * Update WebattackRCE.pcap.out * Add missing SUBST. * Delete WebattackRCE.pcap.out * Update WebAttackRCE result. * Fix typo. * Extend jobs with pcre+msan+maxminddb. * Fix code inpector warnings. * Delete .appveyor.yml --- src/lib/ndpi_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index 9c77e6d92..a7cf405c1 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -1570,7 +1570,7 @@ static int ndpi_is_rce_injection(char* query) { size_t ushlen = sizeof(ush_commands) / sizeof(ush_commands[0]); - for(int i = 0; i < ushlen; i++) { + for(unsigned long i = 0; i < ushlen; i++) { if(strstr(query, ush_commands[i]) != NULL) { return 1; } @@ -1578,7 +1578,7 @@ static int ndpi_is_rce_injection(char* query) { size_t pwshlen = sizeof(pwsh_commands) / sizeof(pwsh_commands[0]); - for(int i = 0; i < pwshlen; i++) { + for(unsigned long i = 0; i < pwshlen; i++) { if(strstr(query, pwsh_commands[i]) != NULL) { return 1; } -- cgit v1.2.3