diff options
author | Jeff Davis <jdavis@postgresql.org> | 2023-04-21 08:19:41 -0700 |
---|---|---|
committer | Jeff Davis <jdavis@postgresql.org> | 2023-04-21 08:20:47 -0700 |
commit | 79a66c617ae3e9e0258087c6e3209b021badda4b (patch) | |
tree | ca839b85717ad1031b5b41f685d3014642752f04 /src/backend/utils/adt/network_spgist.c | |
parent | 6dce37203410b011c0ccae40acf2649f79c38242 (diff) | |
download | postgresql-79a66c617ae3e9e0258087c6e3209b021badda4b.tar.gz postgresql-79a66c617ae3e9e0258087c6e3209b021badda4b.zip |
Avoid character classification in regex escape parsing.
For regex escape sequences, just test directly for the relevant ASCII
characters rather than using locale-sensitive character
classification.
This fixes an assertion failure when a locale considers a non-ASCII
character, such as "൧", to be a digit.
Reported-by: Richard Guo
Discussion: https://postgr.es/m/CAMbWs49Q6UoKGeT8pBkMtJGJd+16CBFZaaWUk9Du+2ERE5g_YA@mail.gmail.com
Backpatch-through: 11
Diffstat (limited to 'src/backend/utils/adt/network_spgist.c')
0 files changed, 0 insertions, 0 deletions