summaryrefslogtreecommitdiffstats
path: root/media/jni
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2015-09-03 17:36:20 +0900
committerThe Android Automerger <android-build@google.com>2015-09-03 10:44:23 -0700
commit704a5a0c72a95d2b12b3410fb0a26399908055d4 (patch)
treefe5c508a6f55c2b9f4caacdc5a8910891c7cbdae /media/jni
parente1d47a7bc9236343bafe9d49882d143af2b6d11b (diff)
downloadframeworks_base-704a5a0c72a95d2b12b3410fb0a26399908055d4.zip
frameworks_base-704a5a0c72a95d2b12b3410fb0a26399908055d4.tar.gz
frameworks_base-704a5a0c72a95d2b12b3410fb0a26399908055d4.tar.bz2
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 'media/jni')
0 files changed, 0 insertions, 0 deletions