diff options
author | Hugo Benichi <hugobenichi@google.com> | 2016-10-11 11:39:39 +0900 |
---|---|---|
committer | Hugo Benichi <hugobenichi@google.com> | 2016-10-24 15:40:30 +0900 |
commit | 89aa6fb4d87b5a279150f15ad1f9bcfa03e3a261 (patch) | |
tree | 411954bb7a92bf953358b6c61a127474269a1c9a /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 5d1bfd9d5f1251b91525641d7980e38f0379f7f0 (diff) |
DhcpClient: guard against failure to parse packets
DhcpPacket.decodeFullPacket() is not exception safe and can throw
various runtime exceptions when trying to parse malicious or malformed
packets.
This patch adds a generic catch-all-exception in DhcpClient to avoid
propagating the exception and killing the framework process on reception
of such malformed packets.
Bug: 31850211
Change-Id: I2e723a792ff067ada2834da875700d4df16c5159
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions