Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jun 2015 19:46:12 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r284131 - stable/10/cddl/contrib/opensolaris/lib/libdtrace/common
Message-ID:  <201506071946.t57JkCAU060186@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 }
 
 /*



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