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 30, 4:58 AM
Unknown Object (File)
Sun, Dec 28, 8:03 PM
Unknown Object (File)
Sun, Dec 14, 3:35 PM
Unknown Object (File)
Thu, Dec 11, 3:43 PM
Unknown Object (File)
Tue, Dec 9, 3:59 PM
Unknown Object (File)
Nov 27 2025, 3:52 PM
Unknown Object (File)
Nov 25 2025, 11:48 PM
Unknown Object (File)
Nov 15 2025, 12:11 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.