krisprice / ipnet

IpNet, Ipv4Net, and Ipv6Net types and methods for Rust
Apache License 2.0
122 stars 26 forks source link

Linker error when compiling for AFL coverage #54

Open njelich opened 7 months ago

njelich commented 7 months ago

Hi! I found a curious edge case and made a PoC for it.

https://github.com/njelich/ipnet-poc

This affects the if-watch package.

krisprice commented 2 months ago

I have no idea what's happening here. If you or someone else finds a fix please submit a PR. :-)

njelich commented 2 months ago

Well, the issue seems to disappear when removing cdylib from the crate type array, but as to what exactly leads to it, I am unsure. Might be upstream with rust linker?