]> granicus.if.org Git - python/commit
bpo-38353: getpath.c: allocates strings on the heap (GH-16585)
authorVictor Stinner <vstinner@python.org>
Fri, 4 Oct 2019 17:53:43 +0000 (19:53 +0200)
committerGitHub <noreply@github.com>
Fri, 4 Oct 2019 17:53:43 +0000 (19:53 +0200)
commitc02b41b1fb115c87693530ea6a480b2e15460424
treedd863614c77112d715aac8277083cdd8d119f905
parentabd7cd856ba326bd7574135c7d034e98492ab695
bpo-38353: getpath.c: allocates strings on the heap (GH-16585)

* _Py_FindEnvConfigValue() now returns a string allocated
  by PyMem_RawMalloc().
* calculate_init() now decodes VPATH macro.
* Add calculate_open_pyenv() function.
* Add substring() and joinpath2() functions.

* Fix add_exe_suffix()

And a few cleanup changes.
Include/internal/pycore_pathconfig.h
Modules/getpath.c
PC/getpathp.c
Python/pathconfig.c