Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

mmap check #123

Open
zeno000 opened this issue Mar 9, 2021 · 0 comments
Open

mmap check #123

zeno000 opened this issue Mar 9, 2021 · 0 comments

Comments

@zeno000
Copy link

zeno000 commented Mar 9, 2021

c_gpio.c line 84 checks for success of mmap( ) call. It currently casts the result to unsigned, then checks for less than 0. Line 85 never executes, and an actual bad mmap results in a segmentation fault.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant