[asterisk-dev] [Code Review] 3704: Infinite loop possible in ast_careful_fwrite()

Matt Jordan reviewboard at asterisk.org
Wed Jul 2 18:23:37 CDT 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3704/#review12454
-----------------------------------------------------------

Ship it!


Ship It!

- Matt Jordan


On July 2, 2014, 11:37 a.m., one47 wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/3704/
> -----------------------------------------------------------
> 
> (Updated July 2, 2014, 11:37 a.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Bugs: ASTERISK-23984
>     https://issues.asterisk.org/jira/browse/ASTERISK-23984
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> Discovered this by playing with WebRTC - It occurs sometimes if the websocket client closes the connection suddenly.
> 
> fflush() does not always reset errno correctly, particularly at EOF, and can cause a 100% CPU infinite loop.
> 
> 
> Diffs
> -----
> 
>   trunk/main/utils.c 417704 
> 
> Diff: https://reviewboard.asterisk.org/r/3704/diff/
> 
> 
> Testing
> -------
> 
> Repeated websocket opens/closes to be sure the issue is gone.
> 
> 
> Thanks,
> 
> one47
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140702/228ea73c/attachment.html>


More information about the asterisk-dev mailing list