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
F150440301: D45680.id140280.diff
Wed, Apr 1, 5:55 AM
Unknown Object (File)
Tue, Mar 24, 4:52 AM
Unknown Object (File)
Sun, Mar 8, 6:49 PM
Unknown Object (File)
Mon, Mar 2, 10:13 PM
Unknown Object (File)
Feb 8 2026, 7:21 PM
Unknown Object (File)
Feb 8 2026, 2:20 AM
Unknown Object (File)
Feb 7 2026, 10:19 PM
Unknown Object (File)
Feb 6 2026, 4:30 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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

include/ssp/poll.h
3

Extra line here.

lib/libc/sys/ppoll.c
40–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
3

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