fix stack-based oob memory clobber in resolver's result sorting
authorRich Felker <dalias@aerifal.cx>
Sun, 2 Sep 2018 21:08:43 +0000 (17:08 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 2 Sep 2018 21:08:43 +0000 (17:08 -0400)
commit64466094ede4162ddd4049cea5da09feb9abfaa6
tree5ea27fa33205dadfc2ede53a7e6bff3611f9abd0
parentd0d212525ec7d08a4770fba97aa913ea34cafdb2
fix stack-based oob memory clobber in resolver's result sorting

commit 4f35eb7591031a1e5ef9828f9304361f282f28b9 introduced this bug.
it is not present in any released versions. inadvertent use of the &
operator on an array into which we're indexing produced arithmetic on
the wrong-type pointer, with undefined behavior.
src/network/lookup_name.c