Re: BUG #17935: Incorrect memory access in fuzzystrmatch/difference()
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: exclusion@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Date: 2023-05-16T14:23:03Z
Lists: pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes: > In this case, _soundex() exits prematurely and sets only first and last > char > of it's parameter outstr, but difference() loops through SOUNDEX_LEN > chars, > and thus uses initialized data. Yup, that's pretty sloppy, will fix. regards, tom lane
Commits
-
Ensure Soundex difference() function handles empty input sanely.
- eaf99e4c4ae4 15.4 landed
- ccd362325622 14.9 landed
- 8084bf9a493d 11.21 landed
- 1d369c9e90f3 16.0 landed
- 0966291a4ade 12.16 landed
- 0409c7fc746b 13.12 landed