Add tests for passing null to bind, sendto and connect.
Many of these are commented out due to: 03-21 20:22:33.425 6172 6172 F DEBUG : Abort message: 'JNI DETECTED ERROR IN APPLICATION: field operation on NULL object: 0x0 03-21 20:22:33.425 6172 6172 F DEBUG : in call to GetObjectField 03-21 20:22:33.425 6172 6172 F DEBUG : from void libcore.io.Linux.bind(java.io.FileDescriptor, java.net.SocketAddress)' ... 03-21 20:22:33.505 6172 6172 F DEBUG : #06 pc 0000000000390f3c /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::CheckJNI::GetField(char const*, _JNIEnv*, _jobject*, _jfieldID*, bool, art::Primitive::Type)+860) 03-21 20:22:33.505 6172 6172 F DEBUG : #07 pc 0000000000035228 /apex/com.android.runtime/lib64/libjavacore.so (javaInetSocketAddressToInetAddressAndPort(_JNIEnv*, _jobject*, _jobject*&, int&)+72) Bug: 126699941 Test: atest CtsLibcoreTestCases:libcore.libcore.io.OsTest#testCrossFamilyBindConnectSendto Change-Id: Ia8d00990306ae01657a52a5e72d5cf0b867d79ff
Loading
Please sign in to comment