Re: BUG #17935: Incorrect memory access in fuzzystrmatch/difference()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: exclusion(at)gmail(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #17935: Incorrect memory access in fuzzystrmatch/difference()
Date: 2023-05-16 14:23:03
Message-ID: 2595015.1684246983@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2023-05-16 15:21:00 Re: XML element with special characters can be created, serialized, but not deserialized
Previous Message Tom Lane 2023-05-16 13:52:08 Re: BUG #17936: Memory Leak when OPERATOR FAMILY use LANGUAGE SQL function