Skip to content
This repository was archived by the owner on Dec 15, 2020. It is now read-only.

Conversation

@btoews
Copy link
Contributor

@btoews btoews commented Jun 19, 2018

IOMemoryDescriptor.map() will return NULL if the report length is 0. This can be triggered by sending a report with a single null byte. This is fixed by checking the memory descriptor length earlier on. To be doubly sure, we also checking the return value from report->map().

cc @herrjemand @philipturnbull
fixes #48

btoews added 2 commits June 19, 2018 12:49
IOMemoryDescriptor.map() will return NULL if the length is 0. This can
be triggered by sending a report with a single null byte.
@philipturnbull
Copy link

Looks sensible to me 👍

@btoews btoews merged commit 7c3cfc3 into master Jun 19, 2018
@btoews btoews deleted the null-map branch June 19, 2018 19:45
@btoews
Copy link
Contributor Author

btoews commented Jun 19, 2018

This fix is included in v0.0.17.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kernel panic on sending 0x00 buffer

3 participants