android_packages_modules_Co.../framework
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Chiachang Wang 9024d7849e Assign the bit calculation as long to prevent overflow
The value should be assigned as a long to do the bit calculation
as the mNetworkCapabilities is intended to be a long. Otherwise,
the value will be temporary assigned into an integer then
assigned to the target long. When the bit shift calculation
is out of the integer scope, the calculation will overflow and
result in unexpected bebavior.

Without assigning to a long, ConnectivityServiceTest will get
Out-Of-Memory in StringBuilder while generating toString() in
NetworkCapabilities after updating tests to verify
NET_CAPABILITY_VSIM and NET_CAPABILITY_BIP.

Bug: 130869457
Test: atest FrameworksNetTests
Change-Id: I4d34c1215c7efb6dc352c314107792e3fa512ad7
2021-04-07 02:06:33 +00:00
..
aidl-export/android/net Remove unstable IpPrefix 2021-04-01 22:59:02 +00:00
api Merge "Add session ID to VpnTransportInfo" 2021-04-06 06:50:48 +00:00
src/android/net Assign the bit calculation as long to prevent overflow 2021-04-07 02:06:33 +00:00
Android.bp Add connectivity protos to framework-connectivity 2021-03-20 22:51:35 +09:00
jarjar-rules-proto.txt Add connectivity protos to framework-connectivity 2021-03-20 22:51:35 +09:00
jarjar-rules.txt Add connectivity protos to framework-connectivity 2021-03-20 22:51:35 +09:00