Page MenuHomeFreeBSD

include: ssp: fortify poll/ppoll from <poll.h>
ClosedPublic

Authored by kevans on Jun 21 2024, 4:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 24, 10:29 AM
Unknown Object (File)
Fri, Jan 17, 6:16 PM
Unknown Object (File)
Fri, Jan 17, 3:43 PM
Unknown Object (File)
Thu, Jan 9, 12:41 PM
Unknown Object (File)
Thu, Jan 9, 12:00 PM
Unknown Object (File)
Wed, Jan 8, 10:12 PM
Unknown Object (File)
Dec 25 2024, 2:23 PM
Unknown Object (File)
Dec 24 2024, 4:11 PM
Subscribers

Details

Summary

For poll/ppoll we just need to bounds-check the poll array that we're
about to write out to.

Sponsored by: Stormshieled
Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 58289
Build 55177: arc lint + arc unit

Event Timeline

include/ssp/poll.h
2

Extra line here.

lib/libc/sys/ppoll.c
41

This line is too long.

This revision is now accepted and ready to land.Jun 24 2024, 4:54 PM
kevans added inline comments.
include/ssp/poll.h
2

Addressed here and all of the other headers since these were all copy/paste into each other.

kevans marked an inline comment as done.

Address review feedback

This revision now requires review to proceed.Jun 26 2024, 7:12 PM
This revision is now accepted and ready to land.Jun 27 2024, 3:14 PM