LIBPTHREAD_QUEUE_FIFO is used in bitwise offset, we set the limit to
0~31 so that it won't cause undefined behavior. Also, create a new help
function to do getnv+strtol directly and check the boundary of the valid
value.
Details
Details
- Reviewers
kib markj - Commits
- rG5fb07bbcd5d5: libthr: Fix LIBPTHREAD_QUEUE_FIFO range
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 77930 Build 74813: arc lint + arc unit
Event Timeline
| lib/libthr/thread/thr_init.c | ||
|---|---|---|
| 490 | strtol override errno. But maybe it is not important. Drop this now. | |