Re: [PATCH] virsocketaddr: Zero @netmask in virSocketAddrPrefixToNetmask()

2020-10-12 Thread Michal Privoznik
On 10/10/20 6:39 PM, Laine Stump wrote: On 10/9/20 10:43 AM, Michal Privoznik wrote: The aim of virSocketAddrPrefixToNetmask() is to initialize passed virSocketAddr structure based on prefix length and family. However, it doesn't set all members in the struct which may lead to reads of uninitial

Re: [PATCH] virsocketaddr: Zero @netmask in virSocketAddrPrefixToNetmask()

2020-10-10 Thread Laine Stump
On 10/9/20 10:43 AM, Michal Privoznik wrote: The aim of virSocketAddrPrefixToNetmask() is to initialize passed virSocketAddr structure based on prefix length and family. However, it doesn't set all members in the struct which may lead to reads of uninitialized values: ==15421== Use of uninitiali

[PATCH] virsocketaddr: Zero @netmask in virSocketAddrPrefixToNetmask()

2020-10-09 Thread Michal Privoznik
The aim of virSocketAddrPrefixToNetmask() is to initialize passed virSocketAddr structure based on prefix length and family. However, it doesn't set all members in the struct which may lead to reads of uninitialized values: ==15421== Use of uninitialised value of size 8 ==15421==at 0x50F297A: