Date: Thu, 09 Apr 2020 14:19:56 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 245476] config(8) line parsing fragile Message-ID: <bug-245476-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245476 Bug ID: 245476 Summary: config(8) line parsing fragile Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: kevans@freebsd.org get_word and get_quoted_word, at the very least, are currently quite fragile -- they're expecting short subjects, which won't necessarily be the case. This can be easily seen by reverting the parts of r359689 that doubled the line buffer sizes and observing the new output to stderr as it tries to parse too long of lines. Previously, we just clobbered memory past the line buffer and did the wrong thing. r359689 was just a band-aid, though -- these sizes will need adjusted as needs change and randomly blow up on valid config bits. It would be nicer/more developer friendly to be more dynamic here. -- 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-245476-227>
