Skip to content

gnrc_ipv6: fix _fill_ipv6_hdr() for pure IPv6 packets#10422

Merged
miri64 merged 2 commits intoRIOT-OS:masterfrom
miri64:gnrc_ipv6/bug/fill-until-end-case
Nov 17, 2018
Merged

gnrc_ipv6: fix _fill_ipv6_hdr() for pure IPv6 packets#10422
miri64 merged 2 commits intoRIOT-OS:masterfrom
miri64:gnrc_ipv6/bug/fill-until-end-case

Conversation

@miri64
Copy link
Copy Markdown
Member

@miri64 miri64 commented Nov 17, 2018

Contribution description

If an empty IPv6 packet or a packet only containing extension headers (or unparsed extension headers in case of routing and fragmentation headers) is sent the packet is currently dropped (or the node might even crash) due to this bug.

Testing procedure

Send an empty IPv6 packet or try the testing procedures I lined out in #10229 (comment)

Issues/PRs references

Discovered while testing #10229

@miri64 miri64 added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Area: network Area: Networking CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Nov 17, 2018
@miri64 miri64 added this to the Release 2019.01 milestone Nov 17, 2018
@miri64 miri64 requested a review from bergzand November 17, 2018 11:49
@bergzand
Copy link
Copy Markdown
Member

The extended description of the first commit looks truncated to me

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Nov 17, 2018

Fixed.

@bergzand
Copy link
Copy Markdown
Member

Ack, please squash

If a packet only contains IPv6 and IPv6 extension header snips (e.g. if
the IPv6 packet has no payload or if an extension header was not
pre-parsed)
@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Nov 17, 2018

Squashed

@miri64 miri64 force-pushed the gnrc_ipv6/bug/fill-until-end-case branch from 1adf7b5 to d4f425b Compare November 17, 2018 13:49
Copy link
Copy Markdown
Member

@bergzand bergzand left a comment

Choose a reason for hiding this comment

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

ACK

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Nov 17, 2018

Cool new feature with the force-push compare :o

@bergzand
Copy link
Copy Markdown
Member

Cool new feature with the force-push compare :o

Github stealing features from Gitlab again 😆

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Nov 17, 2018

Github stealing features from Gitlab again laughing

Didn't know GitLab has that :D

@miri64 miri64 merged commit 447e1b8 into RIOT-OS:master Nov 17, 2018
@miri64 miri64 deleted the gnrc_ipv6/bug/fill-until-end-case branch November 17, 2018 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: network Area: Networking CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants