[asterisk-bugs] [JIRA] (ASTERISK-23984) Infinite loop possible in ast_careful_fwrite()

Steve Davies (JIRA) noreply at issues.asterisk.org
Wed Jul 2 11:05:56 CDT 2014


     [ https://issues.asterisk.org/jira/browse/ASTERISK-23984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Davies updated ASTERISK-23984:
------------------------------------

    Reviewboard Link: https://reviewboard.asterisk.org/r/3704/

Added reviewboard link.

> Infinite loop possible in ast_careful_fwrite()
> ----------------------------------------------
>
>                 Key: ASTERISK-23984
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23984
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/General
>    Affects Versions: 11.10.2
>            Reporter: Steve Davies
>
> Towards the end of ast_careful_fwrite(), and attempt is made to flush the userspace buffers using fflush.
> If fflush first returns EOF/EINTR, and then returns EOF/SUCCESS, errno is not reset on the second time around the loop, and is then never reset, causing an infinite 100% CPU loop.



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



More information about the asterisk-bugs mailing list