From 4c7863aac66ff92802fcd5476f8b7ae1feb8ebdf Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 17 Mar 2004 18:31:11 +0000 Subject: [PATCH] Fix endless loop in CQL parser with unbalanced --- CHANGELOG | 2 ++ src/cql.y | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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); -- 1.7.10.4