eulerto / pg_similarity

set of functions and operators for executing similarity queries
BSD 3-Clause "New" or "Revised" License
363 stars 39 forks source link

overlapcoefficient causes segment fault if either parameter is an empty string #6

Closed ericjredman closed 11 years ago

ericjredman commented 11 years ago

If either parameter passed to overlapcoefficient is an empty string rather than null, a segment fault is raised. I can repeat this with the extension installed on Amazon Linux 2012-09 running Postgresql 9.2. I compiled the pg_similarity code from c12cc00.

Here's an example:

values(overlapcoefficient('hello',''))

eulerto commented 11 years ago

Fixed in 0178f9f. Thanks for your report!

ericjredman commented 11 years ago

Awesome!

On Fri, Nov 16, 2012 at 9:02 AM, Euler Taveira de Oliveira < notifications@github.com> wrote:

Fixed in 0178f9f https://github.com/eulerto/pg_similarity/commit/0178f9f. Thanks for your report!

— Reply to this email directly or view it on GitHubhttps://github.com/eulerto/pg_similarity/issues/6#issuecomment-10453858.