summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2020-04-14 14:57:30 +0900
committerLorenzo Colitti <lorenzo@google.com>2020-04-14 15:02:17 +0900
commit210ac1e14547774312496f8c478d5df450ead098 (patch)
tree09cae14fd43da7b8f28aa8d38e6c43a15feec1a1 /tools/aapt2/java/JavaClassGenerator_test.cpp
parenta3b89694e7d79ab2dd172cbdc9794634bd8e45d0 (diff)
Don't crash when receiving an RTM_DELNEIGH or NUD_FAILED.
These events don't have MAC addresses, so the code attempts to create an Ipv6ForwardingRule with a null MAC address. This crashes when attempting to get the raw MAC address bytes to send to netd in the TetherOffloadRuleParcel. This was not caught by unit tests because the test exercise this code path in a way that is not correct (by sending RTM_DELNEIGH and NUD_FAILED events with MAC addresses). Fix the unit tests to properly pass in null MAC addresses for these events. Bug: 153697068 Test: fixed existing tests to be more realistic Change-Id: I26d89a81f1c448d9b4809652b079a5f5eace3924
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions