[Home]

Summary:ASTERISK-23984: Infinite loop possible in ast_careful_fwrite()
Reporter:Steve Davies (one47)Labels:
Date Opened:2014-07-02 10:57:27Date Closed:2014-07-03 06:21:31
Priority:MajorRegression?
Status:Closed/CompleteComponents:Core/General
Versions:11.10.2 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description: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.



Comments:By: Steve Davies (one47) 2014-07-02 11:04:48.625-0500

Added reviewboard link.