Message296916
The leak can reproduce only using this test:
def test_execve_invalid_env(self):
args = [sys.executable, '-c', 'pass']
# equal character in the enviroment variable name
newenv = os.environ.copy()
newenv["FRUIT=ORANGE"] = "lemon"
with self.assertRaises(ValueError):
os.execve(args[0], args, newenv)
It seems like the bug is in parse_envlist() function of Modules/posixmodule.c, when a key contains the '=' character. |
|
Date |
User |
Action |
Args |
2017-06-26 16:46:06 | vstinner | set | recipients:
+ vstinner |
2017-06-26 16:46:06 | vstinner | set | messageid: <1498495566.09.0.919519095757.issue30769@psf.upfronthosting.co.za> |
2017-06-26 16:46:06 | vstinner | link | issue30769 messages |
2017-06-26 16:46:05 | vstinner | create | |
|