[issue17925] asynchat.async_chat.initiate_send : del deque[0] is not safe
Pierrick Koch added the comment: Fix patch from Xavier's comment, sorry for the delay. Lib/test/test_asynchat.py passes (Ran 27 tests in 1.431s) -- Added file: http://bugs.python.org/file33898/cpython.asyncore_4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17925 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17925] asynchat.async_chat.initiate_send : del deque[0] is not safe
Pierrick Koch added the comment: last patch, replaced: self.producer_fifo.appendleft([data, first]) by: self.producer_fifo.extendleft([data, first]) -- Added file: http://bugs.python.org/file30612/cpython.asyncore_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17925 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17925] asynchat.async_chat.initiate_send : del deque[0] is not safe
Pierrick Koch added the comment: sorry for the delay, here is the updated patch, shall I add a new class in Lib/test/test_asynchat.py ? -- Added file: http://bugs.python.org/file30545/cpython.asyncore.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17925 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17925] asynchat.async_chat.initiate_send : del deque[0] is not safe
New submission from Pierrick Koch: Dear, del deque[0] is not safe, see the attached patch for the asynchat.async_chat.initiate_send method. fix the IndexError: deque index out of range of del self.producer_fifo[0] Best, Pierrick Koch -- components: Library (Lib) files: asynchat.async_chat.initiate_send.deldeque.patch keywords: patch messages: 188652 nosy: Pierrick.Koch priority: normal severity: normal status: open title: asynchat.async_chat.initiate_send : del deque[0] is not safe type: crash versions: Python 3.3 Added file: http://bugs.python.org/file30165/asynchat.async_chat.initiate_send.deldeque.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17925 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com