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)
Sun, Oct 19, 5:23 AM
Unknown Object (File)
Sat, Oct 18, 5:35 PM
Unknown Object (File)
Fri, Oct 17, 3:30 PM
Unknown Object (File)
Tue, Oct 14, 7:20 AM
Unknown Object (File)
Mon, Oct 6, 2:41 AM
Unknown Object (File)
Sun, Oct 5, 7:19 PM
Unknown Object (File)
Sun, Oct 5, 6:46 AM
Unknown Object (File)
Sep 16 2025, 9:42 AM
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.