diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2015-09-03 17:36:20 +0900 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2015-09-03 21:28:48 +0900 |
commit | d64144a37ca0a6f341c0092cc04271831ff5f90d (patch) | |
tree | 1925d0e60f86d31338096007c96ee7029ce3bea9 /tools/aapt2/java/JavaClassGenerator.cpp | |
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions