This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2017-06-26.16:46:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1498495566.09.0.919519095757.issue30769@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-06-26 16:46:06vstinnersetrecipients: + vstinner
2017-06-26 16:46:06vstinnersetmessageid: <1498495566.09.0.919519095757.issue30769@psf.upfronthosting.co.za>
2017-06-26 16:46:06vstinnerlinkissue30769 messages
2017-06-26 16:46:05vstinnercreate