]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r283025:
authormarkj <markj@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 7 Jun 2015 19:46:12 +0000 (19:46 +0000)
committermarkj <markj@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 7 Jun 2015 19:46:12 +0000 (19:46 +0000)
commit432f971fafde16d1a0d51215ee847eeee2c9de2b
treed235074814220fd4d9379f1880ff8f2236016206
parentabf2cc30ec77f5ac7fe077a8ac96ab2e38a5da4d
MFC r283025:
As dtrace(1) processes D libraries under /usr/lib/dtrace, the compiler may
return an error if one of the depends_on directives in a library is not
satisfied. In this case, libdtrace is supposed to ignore the library and
carry on. However, the remainder of the library may still be buffered by
the lexer, causing libdtrace to erroneously continue processing it on the
next call to yyparse(). Fix this by explicitly flushing the input buffer
each time the compiler state is reset.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284131 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
cddl/contrib/opensolaris/lib/libdtrace/common/dt_lex.l