mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-23 00:00:06 +01:00
![]() this patch makes ubsan (-fsanitize-undefined-trap-on-error) happy. let's look at the following scenario: 1. netlink sends RTM_NEWADDR/RTM_DELADDR message 2. rops_handle_POLLIN_netlink() handles message attributes as RTA_* 3. rops_handle_POLLIN_netlink() finds RTA_PRIORITY attribute and handles it as u32 value, but it's IFA_CACHEINFO attribute in reality and payload holds another type 4. ubsan throws SIGTRAP so, don't handle RTM_NEWADDR/RTM_DELADDR attributes as RTA_* |
||
---|---|---|
.. | ||
ops-netlink.c |