We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9deec1a commit db7b83eCopy full SHA for db7b83e
src/macho.rs
@@ -176,19 +176,19 @@ pub trait Properties {
176
}
177
impl Properties for MachO<'_> {
178
fn has_arc(&self) -> bool {
179
- if let Ok(imports) = self.imports() {
180
- for import in &imports {
181
- if import.name == "_objc_release" {
+ for i in self.symbols() {
+ if let Ok((symbol,_)) = i {
+ if symbol == "_objc_release" {
182
return true;
183
184
185
186
false
187
188
fn has_canary(&self) -> bool {
189
190
191
- match import.name {
+ match symbol {
192
"___stack_chk_fail" | "___stack_chk_guard" => return true,
193
_ => continue,
194
0 commit comments