pgsql: unaccent: Fix allocation size for target characters on initial l - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: unaccent: Fix allocation size for target characters on initial l
Date
Msg-id E1qkZav-005kt5-DE@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: pgsql: Fix typo in test comment
Next
From: Daniel Gustafsson
Date:
Subject: pgsql: Add GUC for temporarily disabling event triggers