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));