From: Alexander Traud Date: Tue, 30 Jan 2018 15:58:30 +0000 (+0100) Subject: backtrace: Avoid potential spurious output. X-Git-Tag: 13.20.0-rc1~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1c6a644d379e34442c42b11768c78a121b755a8;p=thirdparty%2Fasterisk.git backtrace: Avoid potential spurious output. clang 4.0 found this via -Wlogical-not-parentheses. ASTERISK-27642 Change-Id: I9ec3e144d425a976c02811bd23cd0c533d2eca4e --- diff --git a/main/backtrace.c b/main/backtrace.c index 1659890548..cb1a87049b 100644 --- a/main/backtrace.c +++ b/main/backtrace.c @@ -131,7 +131,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;