From owner-svn-ports-head@FreeBSD.ORG Mon Jan 19 20:36:43 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 531D5215; Mon, 19 Jan 2015 20:36:43 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3F972622; Mon, 19 Jan 2015 20:36:43 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t0JKah5p032889; Mon, 19 Jan 2015 20:36:43 GMT (envelope-from mandree@FreeBSD.org) Received: (from mandree@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t0JKah0N032888; Mon, 19 Jan 2015 20:36:43 GMT (envelope-from mandree@FreeBSD.org) Message-Id: <201501192036.t0JKah0N032888@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: mandree set sender to mandree@FreeBSD.org using -f From: Matthias Andree Date: Mon, 19 Jan 2015 20:36:43 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r377474 - head/security/openvpn-auth-ldap/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jan 2015 20:36:43 -0000 Author: mandree Date: Mon Jan 19 20:36:42 2015 New Revision: 377474 URL: https://svnweb.freebsd.org/changeset/ports/377474 QAT: https://qat.redports.org/buildarchive/r377474/ Log: Fix crash when configuration file is not EOL-terminated. Added: head/security/openvpn-auth-ldap/files/patch-src_TRConfigLexer.re (contents, props changed) Added: head/security/openvpn-auth-ldap/files/patch-src_TRConfigLexer.re ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/openvpn-auth-ldap/files/patch-src_TRConfigLexer.re Mon Jan 19 20:36:42 2015 (r377474) @@ -0,0 +1,22 @@ +--- src/TRConfigLexer.re.orig 2012-03-03 19:17:45 UTC ++++ src/TRConfigLexer.re +@@ -72,7 +72,7 @@ + #define SC(cond) LEXER_SC_ ## cond: LEXER_SC_ ## cond + + /* Check for end-of-input */ +-#define CHECK_EOI() if (_eoi) { return NULL; } ++#define CHECK_EOI() if (_cursor >= _limit) { return NULL; } + + /* Skip a token */ + #define SKIP(cond) CHECK_EOI(); goto LEXER_SC_ ## cond +@@ -115,10 +115,6 @@ + - (void) fill: (int) length { + /* We just need to prevent re2c from walking off the end of our buffer */ + assert(_limit - _cursor >= 0); +- if (_cursor == _limit) { +- /* Save the cursor and signal EOI */ +- _eoi = _cursor; +- } + } + + - (TRConfigToken *) scan {