Closed otirafuu closed 1 year ago
In https://github.com/Karlson2k/libmicrohttpd/blob/master/src/microhttpd/connection.c#L5437 The memory copy seems to be invalid since both client_addr and addr are pointers and the memcpy plays with their address with addr_len, which seems to be invalid.
memcpy (&connection->connection_info_dummy.client_addr, &connection->addr, (size_t) connection->addr_len);
Nice catch. Thanks! Should be fixed by 31ce530d6b9757f5489aa943d53553dc8a045f20.
In https://github.com/Karlson2k/libmicrohttpd/blob/master/src/microhttpd/connection.c#L5437 The memory copy seems to be invalid since both client_addr and addr are pointers and the memcpy plays with their address with addr_len, which seems to be invalid.