diff options
author | drh <> | 2021-06-03 13:44:19 +0000 |
---|---|---|
committer | drh <> | 2021-06-03 13:44:19 +0000 |
commit | de30a3d2e1101741d1f656458ca6d7378e0a0aa5 (patch) | |
tree | cd6bed86e6aea6eb1994af8ebd7120f883a2e151 /ext/misc/regexp.c | |
parent | 75f7317722c3e41b61291db992b6527b4a756011 (diff) | |
download | sqlite-de30a3d2e1101741d1f656458ca6d7378e0a0aa5.tar.gz sqlite-de30a3d2e1101741d1f656458ca6d7378e0a0aa5.zip |
Fix a bug in the regexp extension in which the "." wildcard would match
the 0x00 terminator at the end of the comparison string.
FossilOrigin-Name: fa23108b299fc70e80540c449500e50ac6344a152f4f6b9c1b1f568bbda8f6e1
Diffstat (limited to 'ext/misc/regexp.c')
-rw-r--r-- | ext/misc/regexp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/misc/regexp.c b/ext/misc/regexp.c index 204489f58..09ac9c502 100644 --- a/ext/misc/regexp.c +++ b/ext/misc/regexp.c @@ -248,7 +248,7 @@ static int re_match(ReCompiled *pRe, const unsigned char *zIn, int nIn){ break; } case RE_OP_ANY: { - re_add_state(pNext, x+1); + if( c!=0 ) re_add_state(pNext, x+1); break; } case RE_OP_WORD: { |