android_packages_modules_Co.../Tethering/jni
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ye Jiao 86f56a135a 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
2021-05-24 06:12:56 +00:00
..
android_net_util_TetheringUtils.cpp Provide a easy way to access bpf maps from java 2021-01-11 17:43:27 +08:00
com_android_networkstack_tethering_BpfCoordinator.cpp Dump counters in "dumpsys tethering bpf". 2021-02-10 04:43:03 +00:00
com_android_networkstack_tethering_BpfMap.cpp Use header module bpf_syscall_wrappers 2021-01-13 14:31:28 +08:00
com_android_networkstack_tethering_BpfUtils.cpp Fix memory access violation in NetworkStack 2021-05-24 06:12:56 +00:00
onload.cpp [NFCT.TETHER.15] Attach BPF program in the mainline module 2021-03-11 17:49:42 +08:00