STINNER Victor <victor.stin...@haypocalc.com> added the comment:

There was a bug in copy_absolute(): if _Py_wgetcwd() failed, the result was 
undefined (depending of the content of "path" buffer). Especially, absolutize() 
calls copy_absolute() with a buffer allocated on the stack: the content of this 
buffer depends on the undefined content of the stack.

Fixed in Python 3.2 (r85309+r85311), 2.7 (r85312) and 3.1 (r85313).

copy_absolute() is used (by calculate_path()) to fill sys.path.

----------
nosy: +haypo

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6612>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to