[asterisk-bugs] [JIRA] (ASTERISK-24515) Unconditional use of fopencookie() / funopen() is non-portable

Matt Jordan (JIRA) noreply at issues.asterisk.org
Wed Nov 12 11:44:29 CST 2014


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

Matt Jordan commented on ASTERISK-24515:
----------------------------------------

While we strive for portability, we strive for correctness - and a lack of gaping security breaches - more. Generally, Asterisk is geared towards Linux. We don't go out of our way to break other OS's, but frankly, it's rarely on the radar when we make changes. Given the resources available, I don't see that changing any time soon.

That being said, we'd certainly like to support other systems where possible. If you'd like to provide a patch that fixes the compatibility issues, that would be hugely appreciated - however, I don't expect a lot of focus to be given to this issue without a patch.

> Unconditional use of fopencookie() / funopen() is non-portable
> --------------------------------------------------------------
>
>                 Key: ASTERISK-24515
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24515
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Portability
>    Affects Versions: 12.7.0, 13.0.0
>            Reporter: Timo Teräs
>
> The fix for AST-2014-007 made Asterisk 13 and newer use non-portable.
> The code now relies on fopencookie() (GNU extension) or funopen() (BSD / OSX extension) for any kind of TCP-socket. Previously fdopen() was used which is standard compliant function. What is worse, the code compiles, but the functionality is crippled.
> This means the TCP-socket core is now unusable for multiple platforms e.g. Solaris, Cygwin, and Linux systems not using glibc (e.g. Alpine Linux using musl as C-library).



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



More information about the asterisk-bugs mailing list