From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20310 invoked by alias); 18 Nov 2016 16:47:22 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 20183 invoked by uid 89); 18 Nov 2016 16:47:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=2816, D*dronecode.org.uk, D*org.uk, sk:jontur X-HELO: rgout0707.bt.lon5.cpcloud.co.uk Received: from rgout0707.bt.lon5.cpcloud.co.uk (HELO rgout0707.bt.lon5.cpcloud.co.uk) (65.20.0.147) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 18 Nov 2016 16:47:16 +0000 X-OWM-Source-IP: 31.51.207.247 (GB) X-OWM-Env-Sender: jonturney@btinternet.com X-Junkmail-Premium-Raw: score=7/50,refid=2.7.2:2016.11.18.162417:17:7.944,ip=,rules=__HAS_FROM, __TO_MALFORMED_2, __TO_NO_NAME, __HAS_CC_HDR, __CC_NAME, __CC_NAME_DIFF_FROM_ACC, __SUBJ_ALPHA_END, __HAS_MSGID, __SANE_MSGID, __HAS_X_MAILER, __IN_REP_TO, __REFERENCES, __FROM_DOMAIN_IN_ANY_CC1, __ANY_URI, __URI_NO_WWW, __NO_HTML_TAG_RAW, BODY_SIZE_600_699, BODYTEXTP_SIZE_3000_LESS, __MIME_TEXT_P1, __MIME_TEXT_ONLY, __URI_NS, HTML_00_01, HTML_00_10, BODY_SIZE_5000_LESS, BODY_SIZE_1000_LESS, BODY_SIZE_2000_LESS, __FROM_DOMAIN_IN_RCPT, IN_REP_TO, __MIME_TEXT_P, REFERENCES, BODY_SIZE_7000_LESS, NO_URI_HTTPS, MSG_THREAD, __CC_REAL_NAMES, MULTIPLE_REAL_RCPTS, LEGITIMATE_SIGNS, LEGITIMATE_NEGATE Received: from localhost.localdomain (31.51.207.247) by rgout07.bt.lon5.cpcloud.co.uk (9.0.019.07.01-1) (authenticated as jonturney@btinternet.com) id 581B49A30198DC7B; Fri, 18 Nov 2016 16:47:14 +0000 From: Jon Turney To: cygwin-apps@cygwin.com Cc: Jon Turney Subject: [PATCH setup 3/5] Ignore malformed lines in a site-list Date: Fri, 18 Nov 2016 16:47:00 -0000 Message-Id: <20161118164646.209716-4-jon.turney@dronecode.org.uk> In-Reply-To: <20161118164646.209716-1-jon.turney@dronecode.org.uk> References: <20161118164646.209716-1-jon.turney@dronecode.org.uk> X-SW-Source: 2016-11/txt/msg00011.txt.bz2 Ignore malformed lines in a site-list, rather than crashing Signed-off-by: Jon Turney --- site.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/site.cc b/site.cc index 677672e..1485096 100644 --- a/site.cc +++ b/site.cc @@ -281,6 +281,11 @@ load_site_list (SiteList& theSites, char *theString) } } } + + /* Ignore malformed lines */ + if (!semi || !semi2 || !semi3) + continue; + site_list_type newsite (bol, semi, semi2, semi3); SiteList::iterator i = find (theSites.begin(), theSites.end(), newsite); -- 2.8.3