Skip to content

Conversation

@igutidze
Copy link

No description provided.

util.c: In function ‘RawFillHeaders’:
util.c:461:25: warning: taking address of packed member of ‘struct udprawpkt’ may result in an unaligned pointer value [-Waddress-of-packed-member]
  461 |     struct iphdr *iph = &(dgram->iph);
      |                         ^~~~~~~~~~~~~
util.c:465:27: warning: taking address of packed member of ‘struct udprawpkt’ may result in an unaligned pointer value [-Waddress-of-packed-member]
  465 |     struct udphdr *udph = &(dgram->udph);
      |                           ^~~~~~~~~~~~~~
util.c: In function ‘OpenSocketSafe’:
util.c:469:5: warning: ‘__builtin_strncpy’ specified bound 16 equals destination size [-Wstringop-truncation]
  469 |     strncpy(ipsrc_str, inet_ntoa(insrc), 16);
      |     ^
util.c:470:5: warning: ‘__builtin_strncpy’ specified bound 16 equals destination size [-Wstringop-truncation]
  470 |     strncpy(ipdst_str, inet_ntoa(indst), 16);
      |     ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant