Re: Bug in jsonb_in function (14 & 15 version are affected)

2023-03-15 Thread Yura Sokolov
В Пн, 13/03/2023 в 13:58 -0400, Tom Lane пишет: > Nikolay Shaplov writes: > > I found a bug in jsonb_in function (it converts json from sting > > representation > >  into jsonb internal representation). > > Yeah.  Looks like json_lex_string is failing to honor the invariant > that it needs to

Re: Bug in jsonb_in function (14 & 15 version are affected)

2023-03-13 Thread Tom Lane
Nikolay Shaplov writes: > I found a bug in jsonb_in function (it converts json from sting representation > into jsonb internal representation). Yeah. Looks like json_lex_string is failing to honor the invariant that it needs to set token_terminator ... although the documentation of the

Bug in jsonb_in function (14 & 15 version are affected)

2023-03-13 Thread Nikolay Shaplov
Hi! I found a bug in jsonb_in function (it converts json from sting representation into jsonb internal representation). To reproduce this bug (the way I found it) you should get 8bit instance of postgres db: 1. add en_US locale (dpkg-reconfigure locales in debian) 2. initdb with latin1