Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using sockaddr instead of sockaddr_in #70

Closed
maxsharabayko opened this issue Jan 2, 2023 · 1 comment
Closed

Using sockaddr instead of sockaddr_in #70

maxsharabayko opened this issue Jan 2, 2023 · 1 comment

Comments

@maxsharabayko
Copy link
Owner

maxsharabayko commented Jan 2, 2023

/srt_socket_group.cpp.o
In file included from /srt-xtransmit/xtransmit/misc.hpp:11,
                 from /srt-xtransmit/xtransmit/srt_socket_group.cpp:13:
In member function ‘void xtransmit::netaddr_any::set(const sockaddr*)’,
    inlined from ‘xtransmit::netaddr_any::netaddr_any(const sockaddr*, xtransmit::netaddr_any::len_t)’ at /srt-xtransmit/xtransmit/netaddr_any.hpp:136:16,
    inlined from ‘static int xtransmit::socket::srt_group::listen_callback_fn(void*, SRTSOCKET, int, const sockaddr*, const char*)’ at /srt-xtransmit/xtransmit/srt_socket_group.cpp:442:40:
/srt-xtransmit/xtransmit/netaddr_any.hpp:153:19: warning: ‘void* memcpy(void*, const void*, size_t)’ reading 28 bytes from a region of size 16 [-Wstringop-overflow=]
  153 |             memcpy((&sin6), source, sizeof sin6);
      |             ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@maxsharabayko
Copy link
Owner Author

Fixed by #92

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant