commit | d64144a37ca0a6f341c0092cc04271831ff5f90d | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Thu Sep 03 17:36:20 2015 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Thu Sep 03 21:28:48 2015 +0900 |
tree | 1925d0e60f86d31338096007c96ee7029ce3bea9 | |
parent | e7078e181cd00d20ce7764efa9835e2604a3cb83 [diff] |
Don't crash on (invalid) hardware address lengths > 127. These would cause us to crash with a NegativeArraySizeException when trying to create the clientMac array. Instead, if the length is > 16 (invalid, because the field is only 16 bytes long), fudge it to 6 (Ethernet / wifi). This is a bit less liberal than the legacy client, which doesn't check the length at all. Bug: 23725795 Change-Id: I83f47bfc400ffa8ce85dd9d1b8eb96be5afe51a5