Skip to content

gsocket: Add assertions about socket address sizes for memcpy()

Philip Withnall requested to merge pwithnall/glib:multicast-memcpy-size into main

These memcpy() calls only happen if g_inet_address_get_family(group) == G_SOCKET_FAMILY_IPV4, so the assertions should never fail.

It’s helpful for understanding the code, and for static analysis, to add the assertions though.

Signed-off-by: Philip Withnall pwithnall@endlessos.org

Coverity CID: #1486858

Merge request reports