pgsql: unaccent: Fix allocation size for target characters on initial l

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: unaccent: Fix allocation size for target characters on initial l
Date: 2023-09-25 00:37:01
Message-ID: E1qkZav-005kt5-DE@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

unaccent: Fix allocation size for target characters on initial load

This led to an overestimation of the size allocated for both the quoted
and non-quoted cases, while using an inconsistent style. Thinkos in
59f47fb98dab.

Per report from Coverity, with extra input from Tom Lane.

Branch
------
master

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

Modified Files
--------------
contrib/unaccent/unaccent.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2023-09-25 11:09:31 pgsql: Add GUC for temporarily disabling event triggers
Previous Message Daniel Gustafsson 2023-09-23 07:58:29 pgsql: Fix typo in test comment