Re: [PATCH uhttpd 2/3] listen: Copy only parts of ai_addr

2021-01-01 Thread Hauke Mehrtens
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

Re: [PATCH uhttpd 2/3] listen: Copy only parts of ai_addr

2021-01-01 Thread Oldřich Jedlička
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. >

Re: [PATCH uhttpd 2/3] listen: Copy only parts of ai_addr

2021-01-01 Thread Oldřich Jedlička
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. > >

[PATCH uhttpd 2/3] listen: Copy only parts of ai_addr

2020-12-31 Thread Hauke Mehrtens
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