pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Avoid character classification in regex escape parsing.
6+ messages / 1 participants
[nested] [flat]

* pgsql: Avoid character classification in regex escape parsing.
@ 2023-04-21 15:31 Jeff Davis <jdavis@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Jeff Davis @ 2023-04-21 15:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c04c6c5d6f5f213f217f1e356bf1c2d8b4e255a2

Modified Files
--------------
src/backend/regex/regc_lex.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Avoid character classification in regex escape parsing.
@ 2023-04-21 15:31 Jeff Davis <jdavis@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Jeff Davis @ 2023-04-21 15:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/109363de0a8906ed6b0b4ab5f8e8e3daa3df929a

Modified Files
--------------
src/backend/regex/regc_lex.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Avoid character classification in regex escape parsing.
@ 2023-04-21 15:31 Jeff Davis <jdavis@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Jeff Davis @ 2023-04-21 15:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/dde926b0f67d461f578e29c5505f21e0c710fba0

Modified Files
--------------
src/backend/regex/regc_lex.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Avoid character classification in regex escape parsing.
@ 2023-04-21 15:31 Jeff Davis <jdavis@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Jeff Davis @ 2023-04-21 15:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/79a66c617ae3e9e0258087c6e3209b021badda4b

Modified Files
--------------
src/backend/regex/regc_lex.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Avoid character classification in regex escape parsing.
@ 2023-04-21 15:31 Jeff Davis <jdavis@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Jeff Davis @ 2023-04-21 15:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5bcb15b8163a38f4875372888160628d4d872404

Modified Files
--------------
src/backend/regex/regc_lex.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Avoid character classification in regex escape parsing.
@ 2023-04-21 15:31 Jeff Davis <jdavis@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Jeff Davis @ 2023-04-21 15:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/106a1bf824ce80c434dbd4cee94e8b66e07e1231

Modified Files
--------------
src/backend/regex/regc_lex.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2023-04-21 15:31 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-04-21 15:31 pgsql: Avoid character classification in regex escape parsing. Jeff Davis <jdavis@postgresql.org>
2023-04-21 15:31 pgsql: Avoid character classification in regex escape parsing. Jeff Davis <jdavis@postgresql.org>
2023-04-21 15:31 pgsql: Avoid character classification in regex escape parsing. Jeff Davis <jdavis@postgresql.org>
2023-04-21 15:31 pgsql: Avoid character classification in regex escape parsing. Jeff Davis <jdavis@postgresql.org>
2023-04-21 15:31 pgsql: Avoid character classification in regex escape parsing. Jeff Davis <jdavis@postgresql.org>
2023-04-21 15:31 pgsql: Avoid character classification in regex escape parsing. Jeff Davis <jdavis@postgresql.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox