projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d30e034
)
Fix endless loop in CQL parser with unbalanced
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 17 Mar 2004 18:31:11 +0000
(18:31 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 17 Mar 2004 18:31:11 +0000
(18:31 +0000)
CHANGELOG
patch
|
blob
|
history
src/cql.y
patch
|
blob
|
history
diff --git
a/CHANGELOG
b/CHANGELOG
index
128cf0f
..
114e5f5
100644
(file)
--- a/
CHANGELOG
+++ b/
CHANGELOG
@@
-1,5
+1,7
@@
Possible compatibility problems with earlier versions marked with '*'.
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
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
(file)
--- 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
Copyright (C) 2002-2004
Index Data Aps
@@
-250,7
+250,7
@@
int yylex(YYSTYPE *lval, void *vp)
}
if (c == '"')
{
}
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);
{
if (c == '\\')
c = cp->getbyte(cp->client_data);