Skip Menu |

This queue is for tickets about the Net-Pcap CPAN distribution.

Report information
The Basics
Id: 7455
Status: resolved
Priority: 0/
Queue: Net-Pcap

People
Owner: SAPER [...] cpan.org
Requestors: jacco.braat [...] start.nl
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.05
Fixed in: 0.07



Subject: Memory corruption when using Net::Pcap::compile (perl 5.8.5)
Net-Pcap-0.05 FreeBSD 4.10-RELEASE-p2 This is perl, v5.8.5 built for i386-freebsd-64int Random coredumps due to memory corruption. The script runs ok without compiling a filter. I have no experience in programming XS, but the following line looks suspicious to me: struct bpf_program *real_fp = safemalloc(sizeof(fp));
From: saper [...] cpan.org
Hello, [guest - Tue Aug 24 08:09:35 2004]: Show quoted text
> Net-Pcap-0.05 > FreeBSD 4.10-RELEASE-p2 > This is perl, v5.8.5 built for i386-freebsd-64int > > Random coredumps due to memory corruption. The script runs ok > without compiling a filter.
Do you still have this problem? If yes, then could you provide a example script that exposes the problem? Show quoted text
> I have no experience in programming XS, but the following line > looks suspicious to me: > struct bpf_program *real_fp = safemalloc(sizeof(fp));
I need to check the libpcap docs, but at first glance, I'd say it's fine. Why do you find it suspicious? -- Close the world, txEn eht nepO.
From: saper [...] cpan.org
Jean-Louis Morel confirmed the bug and sent me a patch to fix this. Will be in release 0.07 -- Close the world, txEn eht nepO.