mfontanini / libtins

High-level, multiplatform C++ network packet sniffing and crafting library.
http://libtins.github.io/
BSD 2-Clause "Simplified" License
1.91k stars 375 forks source link

array bounds warning in include/tins/pdu_option.h #357

Open pisto opened 5 years ago

pisto commented 5 years ago

I'm getting this warning when compiling with g++ 8.3 (Fedora 29): https://paste.fedoraproject.org/paste/ZcWAzGlBPDSdA1pwCwlG0w

Honestly I have no idea if this is a false positive or not.

CMake configuration:


-DLIBTINS_ENABLE_CXX11=1 -DLIBTINS_ENABLE_ACK_TRACKER=0 -DLIBTINS_ENABLE_WPA2=0 -DLIBTINS_ENABLE_DOT11=0 -DLIBTINS_BUILD_EXAMPLES=0 -DLIBTINS_BUILD_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DLIBTINS_BUILD_SHARED=0 -DLIBTINS_ENABLE_PCAP=0 -DLIBTINS_ENABLE_TCPIP=0 -DLIBTINS_ENABLE_ACK_TRACKER=0 -DLIBTINS_ENABLE_TCP_STREAM_CUSTOM_DATA=0 -DLIBTINS_ENABLE_WPA2_CALLBACKS=0 -DLIBTINS_USE_PCAP_SENDPACKET=0```
m-peko commented 5 years ago

Hi there, Can you please post full warning message you get? Thank you

pisto commented 5 years ago

sorry, the link got lost in markdown formatting. check first post.