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

Matt Jordan (JIRA) noreply at issues.asterisk.org
Tue Jul 8 09:56:27 CDT 2014


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

Matt Jordan updated ASTERISK-23984:
-----------------------------------

    Target Release Version/s: 12.4.0

> 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
>      Target Release: 1.8.29.0, 11.11.0, 12.4.0
>
>
> 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