svn commit: r284131 - stable/10/cddl/contrib/opensolaris/lib/libdtrace/common
Mark Johnston
markj at FreeBSD.org
Sun Jun 7 19:46:13 UTC 2015
Author: markj
Date: Sun Jun 7 19:46:12 2015
New Revision: 284131
URL: https://svnweb.freebsd.org/changeset/base/284131
Log:
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.
Modified:
stable/10/cddl/contrib/opensolaris/lib/libdtrace/common/dt_lex.l
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/cddl/contrib/opensolaris/lib/libdtrace/common/dt_lex.l
==============================================================================
--- stable/10/cddl/contrib/opensolaris/lib/libdtrace/common/dt_lex.l Sun Jun 7 19:39:06 2015 (r284130)
+++ stable/10/cddl/contrib/opensolaris/lib/libdtrace/common/dt_lex.l Sun Jun 7 19:46:12 2015 (r284131)
@@ -743,6 +743,7 @@ yyinit(dt_pcb_t *pcb)
#if defined(sun)
yysptr = yysbuf;
#endif
+ YY_FLUSH_BUFFER;
}
/*
More information about the svn-src-stable-10
mailing list