fix potential read past end of buffer in getnameinfo host name lookup
authorAlexey Izbyshev <izbyshev@ispras.ru>
Sat, 25 Feb 2023 15:41:32 +0000 (18:41 +0300)
committerRich Felker <dalias@aerifal.cx>
Mon, 27 Feb 2023 15:04:34 +0000 (10:04 -0500)
commit523d9b965df65bd3ad52863abc817724d7a35f32
treed51b2d91bdd3a6237907e3e2d5975f57e56ed361
parentd0b7f9768df133428b6587a5273551c56c46d6a6
fix potential read past end of buffer in getnameinfo host name lookup

This is completely analoguous to commit 633183b5d1c2.

Similar code called from __lookup_name is not affected because it checks
that the line contains the host name surrounded by blanks.
src/network/getnameinfo.c