firebase / quickstart-ios

Firebase Quickstart Samples for iOS
https://firebase.google.com
Apache License 2.0
2.8k stars 1.47k forks source link

Unreleased Resource: Synchronization #1597

Closed Sneha0523 closed 1 week ago

Sneha0523 commented 5 months ago

usr/local/share/agentWork/app/App_iOS-2/Pods/FirebaseCrashlytics/Crashlytics/Crashlytics/Handlers/FIRCLSMachException.c : 109

The function FIRCLSMachExceptionThreadStart() in FIRCLSMachException.c fails to release a lock it acquires on line 109, which might lead to deadlock.The program fails to release a lock it holds, which might lead to deadlock.

Explanation - The program can potentially fail to release a system resource.
In this case, there are program paths on which the resource allocated in FIRCLSMachException.c on line 109 is not always released.
Resource leaks have at least two common causes:
- Error conditions and other exceptional circumstances.
- Confusion over which part of the program is responsible for releasing the resource.
Most unreleased resource issues result in general software reliability problems. However, if an attacker can intentionally trigger a resource leak, the attacker may be able to launch a denial of service by depleting the resource pool.

Screenshot 2024-05-28 at 8 24 23 PM
Tred3695 commented 3 months ago

if(ois,) Or the other person who knows

morganchen12 commented 1 week ago

The attr pointer is deinitialized in all code paths in the method: https://cs.opensource.google/firebase-sdk/firebase-ios-sdk/+/main:Crashlytics/Crashlytics/Handlers/FIRCLSMachException.c;l=106?q=FIRCLSMachException.c

If you have an instruments trace demonstrating the leak of this pointer, please reopen the issue.