From: Adam Dickmeiss Date: Wed, 17 Mar 2004 18:31:11 +0000 (+0000) Subject: Fix endless loop in CQL parser with unbalanced X-Git-Tag: YAZ.2.0.17.debian.1~2 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=4c7863aac66ff92802fcd5476f8b7ae1feb8ebdf;p=yaz-moved-to-github.git Fix endless loop in CQL parser with unbalanced --- diff --git a/CHANGELOG b/CHANGELOG index 128cf0f..114e5f5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,7 @@ Possible compatibility problems with earlier versions marked with '*'. +Fix endless loop in CQL parser with unbalanced ". + Use a more compact way to store MARC-8 conversion tables. --- 2.0.16 2004/03/16 Debian only diff --git a/src/cql.y b/src/cql.y index 82db22c..8b3d3ee 100644 --- a/src/cql.y +++ b/src/cql.y @@ -1,4 +1,4 @@ -/* $Id: cql.y,v 1.3 2004-03-15 21:39:06 adam Exp $ +/* $Id: cql.y,v 1.4 2004-03-17 18:31:11 adam Exp $ Copyright (C) 2002-2004 Index Data Aps @@ -250,7 +250,7 @@ int yylex(YYSTYPE *lval, void *vp) } if (c == '"') { - while ((c = cp->getbyte(cp->client_data)) != EOF && c != '"') + while ((c = cp->getbyte(cp->client_data)) != 0 && c != '"') { if (c == '\\') c = cp->getbyte(cp->client_data);