From b9f63458e69011aea9aabdd3ffe157d0d4531cc2 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Sat, 3 Dec 2022 18:29:44 +0100 Subject: CI: GitHub is updating Ubuntu runners (#1817) GitHub is moving `ubuntu-latest` to `ubuntu-22.04`: update our dependencies. See: https://github.blog/changelog/2022-11-09-github-actions-ubuntu-latest-workflows-will-use-ubuntu-22-04/ This is the reason of the recent random failures in CI. Update "newest" tested gcc to gcc-12. Fix a memory error introduced in 557bbcfc5a5165c9eb43bbdd78435796239cd3c9 --- src/lib/ndpi_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index e4fe28890..5d9ec40ef 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -6862,7 +6862,7 @@ void ndpi_parse_single_packet_line(struct ndpi_detection_module_struct *ndpi_str line i slike "GET /.... */ - if(strchr((char*)packet->line[0].ptr, ':') == NULL) + if(memchr((char*)packet->line[0].ptr, ':', packet->line[0].len) == NULL) return; } -- cgit v1.2.3