Commit 105a0bdf authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Check for bad packets in getaddrinfo.c's getanswer.

The near duplicate in gethnamaddr.c was already doing so (this fix
is basically copy and pasted from there, but with both copies modified
to avoid skirting undefined behavior).

(cherrypick of 27a4459d from master.)

Bug: http://b/32322088
Change-Id: I9668b1515ad87665e47cae962812474bb480f205
parent 1944780b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment