Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 17311bed authored by Hungming Chen's avatar Hungming Chen Committed by Nucca Chen
Browse files

getaddrinfo: initialize addrinfo_sort_elem array to zero

resolv_rfc6724_sort() may not initialize the data member "src_addr"
of sort element while _find_src_addr() failed. Uninitialized "src_addr"
may cause unexpected rfc6724 sort result. Ex: _get_scope() uses
"src_addr" to compare sort element in _rfc6724_compare().

Test: atest ResolverTest
Bug: 247939181
Change-Id: I8d37cc127bdcac9b8092b45e1be6fe069999282a
parent 41ac1de3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment