mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-09 04:16:51 +02:00
1d369c9e90
fuzzystrmatch's difference() function assumes that _soundex() always initializes its output buffer fully. This was not so for the case of a string containing no alphabetic characters, resulting in unstable output and Valgrind complaints. Fix by using memset() to fill the whole buffer in the early-exit case. Also make some cosmetic improvements (I didn't care for the random switches between "instr[0]" and "*instr" notation). Report and diagnosis by Alexander Lakhin (bug #17935). Back-patch to all supported branches. Discussion: https://postgr.es/m/17935-b99316aa79c18513@postgresql.org |
||
---|---|---|
.. | ||
expected | ||
sql | ||
.gitignore | ||
daitch_mokotoff_header.pl | ||
daitch_mokotoff.c | ||
dmetaphone.c | ||
fuzzystrmatch--1.0--1.1.sql | ||
fuzzystrmatch--1.1--1.2.sql | ||
fuzzystrmatch--1.1.sql | ||
fuzzystrmatch.c | ||
fuzzystrmatch.control | ||
Makefile | ||
meson.build |