Skip Menu |
 

This queue is for tickets about the Search-WuManber CPAN distribution.

Report information
The Basics
Id: 120312
Status: new
Priority: 0/
Queue: Search-WuManber

People
Owner: Nobody in particular
Requestors: bkb [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.25
Fixed in: (no value)



Download (untitled) / with headers
text/plain 644b
This line writes into unallocated memory: https://metacpan.org/source/JNW/Search-WuManber-0.25/WuManber.xs#L83 Since you have i++ <= n_patterns, at the end of the loop i = n_patterns + 2, because i is incremented after taking the value and failing the test. You can check this error using perl -I blib/lib -I blib/arch -MTest::Valgrind t/01-demo.t after installing Test::Valgrind from CPAN. This is with the untarred CPAN distribution, not with the altered one which I posted to github. Also, the arguments to calloc should be (n, size), not (size, n) at this line: https://metacpan.org/source/JNW/Search-WuManber-0.25/WuManber.xs#L63


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.