[pywin32-bugs] [ pywin32-Bugs-2475486 ] Dangerous autocompletes
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2008-12-29 19:35:23
|
Bugs item #2475486, was opened at 2008-12-29 19:35 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2475486&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Robert Brewer (aminusfu) Assigned to: Nobody/Anonymous (nobody) Summary: Dangerous autocompletes Initial Comment: I'm using pywin32 build 210. Some autocompletes are dangerous (and should be trapped in my opinion). Try typing the following in Pythonwin: # Maybe we should use raw_input(). f = input() When you type the "." character in the comment, Pythonwin evaluates raw_input() in order to fetch its attributes, and pops up an input prompt. Well, OK, not a huge problem. We can just cancel the prompt. Now try this one: # Maybe we should use os._exit(0). sys.exit(0) Pythonwin crashes hard. Obviously it's a dynamic language and you can't protect everyone from everything, but maybe these two could be trapped by the autocompleter and not evaluated. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2475486&group_id=78018 |