[asterisk-bugs] [JIRA] (ASTERISK-27630) [patch] editline: Avoid shifting a negative signed value.

Asterisk Team (JIRA) noreply at issues.asterisk.org
Sat Jan 27 08:47:50 CST 2018


    [ https://issues.asterisk.org/jira/browse/ASTERISK-27630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=241837#comment-241837 ] 

Asterisk Team commented on ASTERISK-27630:
------------------------------------------

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

> [patch] editline: Avoid shifting a negative signed value.
> ---------------------------------------------------------
>
>                 Key: ASTERISK-27630
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27630
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: General
>    Affects Versions: 13.19.0, 15.2.0
>            Reporter: Alexander Traud
>            Severity: Minor
>
> On FreeBSD 11.1, the default compiler _clang_ (4.0.0) reports:{code}In file included from editline.c:8:
> ./el.c:173:21: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
>                         el->el_flags &= ~HANDLE_SIGNALS;
>                                         ~~~~~~~~~~~~~~~
> ./el.h:58:25: note: expaned from macro 'HANDLE_SIGNALS'
> #define HANDLE_SIGNALS  1<<0
>                          ^{code}This is an external library, which is still maintained: http://thrysoee.dk/editline/
> That upstream project is active, the last change happened just three weeks ago (officially it is called libedit 2.11). The copy within Asterisk is from 2002, libedit 2.6.
> The short-term workaround is to use the precompiled libedit of your Unix distribution, for example in Debian/Ubuntu: {{sudo apt install libedit-dev}}. As mid-term solution, I attached/backported the change from September 2003, which resolves the compiler issue above ([original source|http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libedit/el.h.diff?r1=1.14&r2=1.15]).
> Although in Asterisk, that library has seen only 49 commits over the last 15 years, as long-term approach, that external library should be
> A) updated to the latest upstream version. Or
> B) removed and relied solely on precompiled Unix packages, see ASTERISK-18725.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list