We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ff567e commit 42bbe24Copy full SHA for 42bbe24
src/elf.rs
@@ -256,17 +256,18 @@ impl Properties for Elf<'_> {
256
}
257
false
258
259
+ #[allow(clippy::case_sensitive_file_extension_comparisons)]
260
fn has_clang_cfi(&self) -> bool {
261
for sym in &self.syms {
262
if let Some(name) = self.strtab.get_at(sym.st_name) {
- if name.contains(".cfi") {
263
+ if name.ends_with(".cfi") {
264
return true;
265
266
267
268
for sym in &self.dynsyms {
269
if let Some(name) = self.dynstrtab.get_at(sym.st_name) {
- if name.contains(".cfi") || name.contains("_cfi") {
270
+ if name.ends_with(".cfi") || name == "__cfi_init" {
271
272
273
0 commit comments