Page MenuHomeFreeBSD

dma: exit if invoked with invalid (zero) argc
ClosedPublic

Authored by emaste on Jan 28 2022, 10:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 17, 11:46 AM
Unknown Object (File)
Dec 10 2024, 8:22 PM
Unknown Object (File)
Oct 31 2024, 1:41 PM
Unknown Object (File)
Oct 31 2024, 1:41 PM
Unknown Object (File)
Oct 31 2024, 1:25 PM
Unknown Object (File)
Oct 24 2024, 7:17 PM
Unknown Object (File)
Oct 18 2024, 6:59 AM
Unknown Object (File)
Oct 4 2024, 1:14 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste created this revision.

Apparently basename(NULL) returns ".", I didn't know that.

This revision is now accepted and ready to land.Jan 28 2022, 10:24 PM

As a general principle, I think it's still a good idea to audit base stuff for argc == 0 issues. We have downstreams for userland-only stuff, so it'd generally be more for their benefit assuming they may not pick up the kernel change (either because they can't for conformance reasons, or whatever).

Apparently basename(NULL) returns ".", I didn't know that.

That's... really odd.