Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancements to ARC and Stack Canary Checks in Mach-O Parsing (#2284)
* Extend 'has_arc' check to include '_swift_release' Updated the has_arc method to detect the usage of ARC not only by the presence of the _objc_release symbol but also by the _swift_release symbol. This change broadens the scope of ARC detection to cover both Objective-C and Swift implementations. * Optimize has_canary function without using a set Refactored the has_canary method to directly check the presence of ___stack_chk_fail and ___stack_chk_guard symbols in imported_functions. Removed the unnecessary conversion to a set, streamlining the function and enhancing readability. Now, has_canary uses any() for efficient symbol existence checks.
- Loading branch information