Add missing check of noError parameter in euc_tw_and_big5.c
Oversight in ea1b99a66 Yukun Wang Backpatch to v14 where this parameter was introduced Discussion: https://www.postgresql.org/message-id/flat/OS0PR01MB6003FCEFF0201EF21685FD33B4E39%40OS0PR01MB6003.jpnprd01.prod.outlook.com
This commit is contained in:
parent
983bdc4fac
commit
004874b72e
@ -286,8 +286,12 @@ big52euc_tw(const unsigned char *big5, unsigned char *p, int len, bool noError)
|
|||||||
{
|
{
|
||||||
/* ASCII */
|
/* ASCII */
|
||||||
if (c1 == 0)
|
if (c1 == 0)
|
||||||
|
{
|
||||||
|
if (noError)
|
||||||
|
break;
|
||||||
report_invalid_encoding(PG_BIG5,
|
report_invalid_encoding(PG_BIG5,
|
||||||
(const char *) big5, len);
|
(const char *) big5, len);
|
||||||
|
}
|
||||||
*p++ = c1;
|
*p++ = c1;
|
||||||
big5++;
|
big5++;
|
||||||
len--;
|
len--;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user