Date: Sat, 6 Jan 2001 16:26:33 -0800 (PST) From: Archie Cobbs <archie@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/contrib/libpcap scanner.l Message-ID: <200101070026.f070QXj73699@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
archie 2001/01/06 16:26:33 PST
Modified files:
contrib/libpcap scanner.l
Log:
When pcap_compile() detects an error, it longjmp()'s out of the
scanner/parser. FreeBSD recently made 'flex' its default implementation
of 'lex'. One of the incompatibilities of 'flex' vs. 'lex' is that
if you longjmp() out of the scanner, you must call yyrestart()
before doing another scan (as documented in flex(1)). So add an
invocation to yyrestart() in lex_init(). This change should be
backwards compatible with the original 'lex'.
PR: bin/24116
Revision Changes Path
1.6 +2 -1 src/contrib/libpcap/scanner.l
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101070026.f070QXj73699>
