Page MenuHomeFreeBSD

show_sysctl_all: reduce copying, please coverity
ClosedPublic

Authored by dougm on Sep 30 2022, 10:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 16, 1:19 PM
Unknown Object (File)
Wed, Nov 12, 6:23 AM
Unknown Object (File)
Mon, Oct 27, 3:50 PM
Unknown Object (File)
Oct 21 2025, 9:51 PM
Unknown Object (File)
Oct 10 2025, 4:37 AM
Unknown Object (File)
Oct 10 2025, 4:37 AM
Unknown Object (File)
Oct 10 2025, 4:37 AM
Unknown Object (File)
Oct 9 2025, 11:17 PM
Subscribers

Details

Summary

Modify db_show_sysctl_all so that it does not copy more than once the data of the input oid, and so that what it passes to db_show_oid does not alarm coverity.

I had to do a little extra work so that I wouldn't be asking you to review your own code.

Diff Detail

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

Event Timeline

dougm created this revision.
This revision is now accepted and ready to land.Oct 1 2022, 2:40 PM