[Python-bugs-list] [Bug #125452] shlex.shlex hangs when parsing an unclosed quoted string
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 08 Jan 2001 19:04:01 -0800
Bug #125452, was updated on 2000-Dec-11 23:12
Here is a current snapshot of the bug.
Project: Python
Category: Python Library
Status: Closed
Resolution: Fixed
Bug Group: None
Priority: 5
Submitted by: nobody
Assigned to : esr
Summary: shlex.shlex hangs when parsing an unclosed quoted string
Details: import StringIO
import shlex
s = shlex.shlex(StringIO.StringIO("hello 'world"))
you'll see that get_token doesn't test for EOF when it's
in the ' state. Just adding that test should fix the
problem.
Follow-Ups:
Date: 2001-Jan-08 19:04
By: akuchling
Comment:
Fixed by patch #102953.
-------------------------------------------------------
Date: 2000-Dec-19 17:00
By: akuchling
Comment:
Patch #102953 has been submitted to fix this.
-------------------------------------------------------
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=125452&group_id=5470