diff options
author | Alexander Traud <pabstraud@compuserve.com> | 2018-01-30 16:58:30 +0100 |
---|---|---|
committer | Alexander Traud <pabstraud@compuserve.com> | 2018-02-10 14:55:42 +0100 |
commit | 32e610d9e6cf6d772244239da76077f46daf9026 (patch) | |
tree | 08f1de6d3cd3ccc2894853e69340964d0ab158d1 /main | |
parent | e132f22a2ef89ca7b7fa7e9a77d4e1aad64bf203 (diff) |
backtrace: Avoid potential spurious output.
clang 4.0 found this via -Wlogical-not-parentheses.
ASTERISK-27642
Change-Id: I9ec3e144d425a976c02811bd23cd0c533d2eca4e
Diffstat (limited to 'main')
-rw-r--r-- | main/backtrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/backtrace.c b/main/backtrace.c index aed4ffd94..7dfcfc36d 100644 --- a/main/backtrace.c +++ b/main/backtrace.c @@ -130,7 +130,7 @@ char **__ast_bt_get_symbols(void **addresses, size_t num_frames) } for (section = bfdobj->sections; section; section = section->next) { - if (!bfd_get_section_flags(bfdobj, section) & SEC_ALLOC || + if (!(bfd_get_section_flags(bfdobj, section) & SEC_ALLOC) || section->vma > offset || section->size + section->vma < offset) { continue; |