Date: Tue, 07 May 2019 21:54:25 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 237778] sysctl.name (0.1) false positive Message-ID: <bug-237778-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237778 Bug ID: 237778 Summary: sysctl.name (0.1) false positive Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: alfix86@gmail.com Attachment #204249 text/plain mime type: Created attachment 204249 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=204249&action=edit file to reproduce the problem The magical "sysctl.name" (0.1), implemented in kern_sysctl.c, gets the 'string name' from the 'int id' of a node, It returns 0 (false positive) and builds a fake name for a non-existent OID. The problem is reproducible by the attached file 'bad_name.c'. Question: Is it a feature? (this code is 20-years-old) Others OIDs sysctl.{oiddesc|oidfmt|oidlabel} return an error for a non-existent node. I have a solution, but I would be sure it is a problem before to create a diff on review.freebsd.org. Regards, Alfonso -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237778-227>
