Date: Sat, 24 Jul 2021 18:59:55 +0200 From: Jakub Wilk <jwilk@...lk.net> To: <oss-security@...ts.openwall.com> Subject: Re: ipython3 may execute code from the current working directory * Mats Wichmann <mats@...hmann.us>, 2021-07-23, 14:39: >>https://github.com/ipython/ipython/blob/7.25.0/IPython/core/shellapp.py#L219 > >normally (cpython), an empty string in sys.path doesn't mean "current >directory", it means "script directory", the directory the script >you're running is found in . No, empty string in sys.path always means cwd. sys.path is the script directory (if available), but that's a non-empty string. But you might be right that this is IPython's failure to mimic how the normal Python interpreter initializes sys.path. -- Jakub Wilk
Powered by blists - more mailing lists
Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.