Skip to content

Commit

Permalink
Fix typo err
Browse files Browse the repository at this point in the history
  • Loading branch information
aled-ua authored Jan 9, 2025
1 parent 6c67fb2 commit 6c5d27f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 3rdParty/LightPcapNg/LightPcapNg/src/light_pcapng.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6c5d27f

Please sign in to comment.