diff options
| author | Ye Jiao <ye.jiao@mediatek.com> | 2021-05-18 15:21:36 +0800 |
|---|---|---|
| committer | Lin Lili <lili.lin@mediatek.com> | 2021-05-24 06:12:56 +0000 |
| commit | 86f56a135a7f04f6217016bd8b4c5f1ac0677a85 (patch) | |
| tree | 3ef773c5ef57199898f826cd2309c210bdae9ab0 /tests/unit/java/android/net/NetworkStatsHistoryTest.java | |
| parent | d56f4a700bc73d2cb52ee990339302899adb150a (diff) | |
Fix memory access violation in NetworkStack
Fix memory access violation in com_android_networkstack_tethering_BpfUtils.cpp
caused by invalid format string in com_android_networkstack_tethering_BpfUtils_isEthernet.
If rv is not valid, jniThrowException will format a string using
"Unknown hardware address type %s on interface %s". However, rv is an int but here
"%s" is used in fmt string, thus causing access violation of memory.
Use "%d" instead of "%s" for int.
Bug: 188757793
Change-Id: I9d8ec0708efd747e24b3b3ffed5336434d4f64a7
Diffstat (limited to 'tests/unit/java/android/net/NetworkStatsHistoryTest.java')
0 files changed, 0 insertions, 0 deletions
