Skip Menu |

This queue is for tickets about the String-Ediff CPAN distribution.

Report information
The Basics
Id: 11258
Status: resolved
Priority: 0/
Queue: String-Ediff

People
Owner: Nobody in particular
Requestors: francis [...] flourish.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.03
Fixed in: 0.04

Attachments
patch-mysocietyfreebsdsegfault



Subject: Segmentation fault on FreeBSD when no common substrings
I get the following error on FreeBSD 5.2.1 with Ediff 0.03 bash-2.05b$ perl -MString::Ediff -e 'print String::Ediff::ediff("Aldersgate", "Bassishaw");' Segmentation fault (core dumped) The bug happens only when the two strings have no common substring. I've tracked it down to a malloc which can allocate 0 bytes if there is no diff. Under FreeBSD this always returns 2048, which you can't write to. So when it writes a NULL in the first byte it crashes. A patch is attached
Download patch-mysocietyfreebsdsegfault
application/octet-stream 325b

Message body not shown because it is not plain text.

fixed in version 0.04. I would like to thank Francis for your time and the patch.