On 1/1/21 11:22 AM, Oldřich Jedlička wrote:
pá 1. 1. 2021 v 11:02 odesílatel Oldřich Jedlička napsal:
Hi,
pá 1. 1. 2021 v 2:20 odesílatel Hauke Mehrtens napsal:
ai_addr has different sizes for IPv4 and IPv6. Only copy the parts which
are actually used and not the full array, to not copy
pá 1. 1. 2021 v 11:02 odesílatel Oldřich Jedlička napsal:
>
> Hi,
>
> pá 1. 1. 2021 v 2:20 odesílatel Hauke Mehrtens napsal:
> >
> > ai_addr has different sizes for IPv4 and IPv6. Only copy the parts which
> > are actually used and not the full array, to not copy and uninitialized
> > memory.
>
Hi,
pá 1. 1. 2021 v 2:20 odesílatel Hauke Mehrtens napsal:
>
> ai_addr has different sizes for IPv4 and IPv6. Only copy the parts which
> are actually used and not the full array, to not copy and uninitialized
> memory.
>
> This fixes a warning found with the address sanitizer.
>
>
ai_addr has different sizes for IPv4 and IPv6. Only copy the parts which
are actually used and not the full array, to not copy and uninitialized
memory.
This fixes a warning found with the address sanitizer.
Signed-off-by: Hauke Mehrtens
---
listen.c | 15 ++-
1 file changed, 10