Changeset 154006 in webkit
- Timestamp:
- Aug 13, 2013 9:19:31 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r154005 r154006 1 2013-08-13 peavo@outlook.com <peavo@outlook.com> 2 3 [Curl] Possible infinite loop while downloading. 4 https://bugs.webkit.org/show_bug.cgi?id=119744 5 6 Reviewed by Darin Adler. 7 8 If adding/removing curl handles fails, the download thread 9 can end up in an endless loop trying to update the curl handle list. 10 11 * platform/network/curl/CurlDownload.cpp: 12 (WebCore::CurlDownloadManager::updateHandleList): Avoid infinite loop by ignoring return value. 13 1 14 2013-08-13 Christophe Dumez <ch.dumez@sisa.samsung.com> 2 15 -
trunk/Source/WebCore/platform/network/curl/CurlDownload.cpp
r153944 r154006 124 124 int size = m_removedHandleList.size(); 125 125 for (int i = 0; i < size; i++) { 126 if (removeFromCurl(m_removedHandleList[0]))127 126 removeFromCurl(m_removedHandleList[0]); 127 m_removedHandleList.remove(0); 128 128 } 129 129 … … 131 131 size = m_pendingHandleList.size(); 132 132 for (int i = 0; i < size; i++) { 133 if (addToCurl(m_pendingHandleList[0]))134 133 addToCurl(m_pendingHandleList[0]); 134 m_pendingHandleList.remove(0); 135 135 } 136 136 }
Note: See TracChangeset
for help on using the changeset viewer.