Assert failure with ICU support
Richard Guo <guofenglinux@gmail.com>
From: Richard Guo <guofenglinux@gmail.com>
To: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2023-04-19T10:30:10Z
Lists: pgsql-bugs
I happened to run into an assert failure by chance with ICU support.
Here is the query:
SELECT '1' SIMILAR TO '\൧';
The failure happens in lexescape(),
default:
assert(iscalpha(c));
FAILW(REG_EESCAPE); /* unknown alphabetic escape */
break;
Without ICU support, the same query just gives an error.
# SELECT '1' SIMILAR TO '\൧';
ERROR: invalid regular expression: invalid escape \ sequence
FWIW, I googled a bit and '൧' seems to be number 1 in Malayalam.
Thanks
Richard
Commits
-
Avoid character classification in regex escape parsing.
- 106a1bf824ce 11.20 landed
- 5bcb15b8163a 12.15 landed
- 79a66c617ae3 13.11 landed
- dde926b0f67d 14.8 landed
- 109363de0a89 15.3 landed
- c04c6c5d6f5f 16.0 landed