Skip to content

Apply #616 fix to flows.c, fix #665#666

Merged
fklassen merged 6 commits intoappneta:4.3.5from
dumprop:master
Jun 19, 2021
Merged

Apply #616 fix to flows.c, fix #665#666
fklassen merged 6 commits intoappneta:4.3.5from
dumprop:master

Conversation

@dumprop
Copy link
Copy Markdown

@dumprop dumprop commented May 9, 2021

Ported #637 fix for #665

}

if ((pktdata[3] & JUNIPER_FLAG_EXT) == JUNIPER_FLAG_EXT) {
if (datalen < 6)
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed that validation because there datalen < 4 already

if (datalen < 4)

Comment on lines +26 to +29
#define JUNIPER_FLAG_NO_L2 0x02 /* L2 header */
#define JUNIPER_FLAG_EXT 0x80 /* Juniper extensions present */
#define JUNIPER_PCAP_MAGIC "MGC"

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed magic numbers, as already implemented in get.c

@fklassen
Copy link
Copy Markdown
Member

Thanks for the PR. Good find. Will add to 4.3.5 release.

@fklassen fklassen self-assigned this May 10, 2021
@fklassen fklassen added the bug label May 10, 2021
@fklassen fklassen changed the base branch from master to v4.3.5 June 19, 2021 19:58
@fklassen fklassen changed the base branch from v4.3.5 to 4.3.5 June 19, 2021 20:00
@fklassen fklassen merged commit 9f6f3d5 into appneta:4.3.5 Jun 19, 2021
@fklassen
Copy link
Copy Markdown
Member

Thanks for the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants