Skip site navigation (1)Skip section navigation (2)
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/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245476

            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 fragil=
e --
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 buff=
er
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 ne=
eds
change and randomly blow up on valid config bits. It would be nicer/more
developer friendly to be more dynamic here.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-245476-227>