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)
Wed, Aug 7, 9:52 AM
Unknown Object (File)
Tue, Jul 30, 1:56 PM
Unknown Object (File)
Jul 12 2024, 12:34 PM
Unknown Object (File)
Jul 11 2024, 1:53 AM
Unknown Object (File)
May 4 2024, 5:38 AM
Unknown Object (File)
Apr 9 2024, 3:11 PM
Unknown Object (File)
Mar 30 2024, 5:31 PM
Unknown Object (File)
Mar 21 2024, 1:19 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