You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix JNI local reference use-after-free in getConnectivityManagerIp
connManager's local reference was deleted right after getActiveNetwork()
but then reused for getLinkProperties(), corrupting the JNI local
reference table (observed as a SIGABRT: "jobject is an invalid local
reference... popped reference at index 15 in a table of size 12",
crashing inside QMdnsEngine::ProviderPrivate::publish() -> getIP()).
Fix by only deleting local refs after their last use, and wrap the
whole function in PushLocalFrame/PopLocalFrame so it doesn't depend on
the calling thread's default local reference capacity.
0 commit comments