commit | 0e441f0d96fc2b83084f046a1511cdb93a015467 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Mon Nov 14 13:56:32 2016 -0800 |
committer | Silence.Zhang <Silence.Zhang@hi-p.com> | Fri Jan 13 12:11:49 2017 +0800 |
tree | 1b71972906e5bf78fe4b6b869b43cb0b023f4c30 | |
parent | bbfc65a34e5c68b6b208f9ecc0fe5e6bc4d40e30 [diff] |
FPII-2768: 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 27a4459d945e34fabd7166791a5b862ccea83f23 from master.) Bug: http://b/32322088 Test: browser still works Change-Id: I16950bb0ff9dc806cc5405b913ca4ef96e43c19f (cherry picked from commit 9ea3f1c8a5280c99b5a315a06175dbce9d9296b7)