From 6c5d27f9c4c8e6eccdb589ae06a8b4e72da0f115 Mon Sep 17 00:00:00 2001 From: aled-ua Date: Thu, 9 Jan 2025 11:33:07 +0800 Subject: [PATCH] Fix typo err --- 3rdParty/LightPcapNg/LightPcapNg/src/light_pcapng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdParty/LightPcapNg/LightPcapNg/src/light_pcapng.c b/3rdParty/LightPcapNg/LightPcapNg/src/light_pcapng.c index 7211adeba..eaac07a6b 100644 --- a/3rdParty/LightPcapNg/LightPcapNg/src/light_pcapng.c +++ b/3rdParty/LightPcapNg/LightPcapNg/src/light_pcapng.c @@ -62,7 +62,7 @@ static struct _light_option *__parse_options(uint32_t **memory, const int32_t ma (opt->option_length / alignment + 1) * alignment; // PCPP patch - // Validate option_length + // Validate actual_length if (actual_length <= 0 || actual_length > max_len - 2 * sizeof(*local_memory)) { free(opt); return NULL;