Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-33016: Fix potential use of uninitialized memory in nt._getfinalpathname ↵ | Steve Dower | 2018-03-08 | 1 | -22/+32 |
| | | | | (GH-6032) | ||||
* | [3.6] bpo-33001: Prevent buffer overrun in os.symlink (GH-5989) (GH-5990) | Steve Dower | 2018-03-05 | 1 | -28/+38 |
| | |||||
* | bpo-32903: Fix a memory leak in os.chdir() on Windows (GH-5801) (#5946) | Miss Islington (bot) | 2018-03-01 | 1 | -7/+7 |
| | | | | | (cherry picked from commit 3e197c7a6740d564ad52fb7901c07d5ff49460f5) Co-authored-by: Alexey Izbyshev <izbyshev@users.noreply.github.com> | ||||
* | closes bpo-32859: Don't retry dup3() if it is not available at runtime (GH-5708) | Miss Islington (bot) | 2018-02-21 | 1 | -1/+1 |
| | | | | | | | | | | | os.dup2() tests for dup3() system call availability at runtime, but doesn't remember the result across calls, repeating the test on each call with inheritable=False. Since the caller of os.dup2() is expected to hold the GIL, fix this by making the variable holding the test result static. (cherry picked from commit b3caf388a0418f6c031e4dbdcc0c1ce7e5cc36bd) Co-authored-by: Alexey Izbyshev <izbyshev@users.noreply.github.com> | ||||
* | Update comment in posixmodule.c (GH-5681) | Miss Islington (bot) | 2018-02-14 | 1 | -1/+1 |
| | | | | | | | | A closing parentheses was missing. Signed-off-by: Ngie Cooper <yaneurabeya@gmail.com> (cherry picked from commit 7745ec4e356ac1f4eaf43b155f4482c20a907d48) Co-authored-by: ngie-eign <1574099+ngie-eign@users.noreply.github.com> | ||||
* | bpo-29248: Fix os.readlink() on Windows (GH-5577) | Miss Islington (bot) | 2018-02-12 | 1 | -3/+3 |
| | | | | | | | | The PrintNameOffset field of the reparse data buffer was treated as a number of characters instead of bytes. (cherry picked from commit 3c34aad4e7a95913ec7db8e5e948a8fc69047bf7) Co-authored-by: SSE4 <tomskside@gmail.com> | ||||
* | bpo-31106: Fix handling of erros in posix_fallocate() and posix_fadvise() ↵ | Miss Islington (bot) | 2018-02-01 | 1 | -10/+20 |
| | | | | | (GH-3000) (GH-3000) (#4101) (cherry picked from commit d4b93e21c2664d6a78e0656e7a7be0807be1c352) | ||||
* | bpo-32277: Fix exception raised from chmod(..., follow_symlinks=False) ↵ | Miss Islington (bot) | 2017-12-14 | 1 | -0/+1 |
| | | | | | (GH-4797) (#4869) (cherry picked from commit 233ef249cc5c18d796fb581747179c5e062b4083) | ||||
* | [3.6] bpo-31343: Include sys/sysmacros.h (GH-3318) (#3344) | Christian Heimes | 2017-09-05 | 1 | -0/+5 |
| | | | | | | | Include sys/sysmacros.h for major(), minor(), and makedev(). GNU C libray plans to remove the functions from sys/types.h. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 75b9618) | ||||
* | bpo-30581: Windows: os.cpu_count() returns wrong number of processors ↵ | Christopher Wilcox | 2017-09-01 | 1 | -3/+16 |
| | | | | | | | | | (#2934) (#3267) * Fixes #30581 by adding a path to use newer GetMaximumProcessorCount API on Windows calls to os.cpu_count() * Add NEWS.d entry for bpo-30581, os.cpu_count on Windows. * Tweak NEWS entry | ||||
* | bpo-29619: Do not use HAVE_LARGEFILE_SUPPORT for type conversions (GH-1666) ↵ | Victor Stinner | 2017-08-17 | 1 | -18/+5 |
| | | | | | | | (#3102) Use only the LongLong form for the conversions (cherry picked from commit 50e86033de85294d87b7e942701d456342abde8e) | ||||
* | [3.6] bpo-30879: os.listdir() and os.scandir() now emit bytes names when ↵ | Serhiy Storchaka | 2017-07-11 | 1 | -3/+5 |
| | | | | | | (GH-2634) (#2656) called with bytes-like argument.. (cherry picked from commit 1180e5a51871fa53ca6892e83fd2e69dc2600447) | ||||
* | bpo-30602: Fix refleak in os.spawnv() (#2212) (#2486) | Victor Stinner | 2017-06-29 | 1 | -1/+1 |
| | | | | | | When os.spawnv() fails while handling arguments, free correctly argvlist: pass lastarg+1 rather than lastarg to free_string_array() to also free the first item. (cherry picked from commit 8acb4cf2b3436652568d7a70228b166316181466) | ||||
* | [3.6] bpo-13617: Reject embedded null characters in wchar* strings. ↵ | Serhiy Storchaka | 2017-06-28 | 1 | -6/+12 |
| | | | | | | | | | | (GH-2302) (#2462) Based on patch by Victor Stinner. Add private C API function _PyUnicode_AsUnicode() which is similar to PyUnicode_AsUnicode(), but checks for null characters.. (cherry picked from commit f7eae0adfcd4c50034281b2c69f461b43b68db84) | ||||
* | [3.6] bpo-30769: Fix reference leak introduced in 77703942c59 (GH-2416) (#2425) | Emily Morehouse | 2017-06-27 | 1 | -0/+4 |
| | | | | | | | | New error condition paths were introduced, which did not decrement `key2` and `val2` objects. Therefore, decrement references before jumping to the error label. Signed-off-by: Eric N. Vander Weele <ericvw@gmail.com> (cherry picked from commit a7874c73c0c729bbec2fd4b077bd0eec276cfff4) | ||||
* | [3.6] bpo-30746: Prohibited the '=' character in environment variable names ↵ | Serhiy Storchaka | 2017-06-25 | 1 | -4/+28 |
| | | | | | | | (GH-2382) (#2391) in `os.putenv()` and `os.spawn*()`.. (cherry picked from commit 77703942c5997dff00c48f10df1b29b11645624c) | ||||
* | bpo-30602: Fix lastarg in os.spawnve() (#2287) (#2357) | Victor Stinner | 2017-06-23 | 1 | -1/+1 |
| | | | | | Fix a regression introduced by myself in the commit 526b22657cb18fe79118c2ea68511aca09430c2c. (cherry picked from commit c8d6ab2e25ff212702d387e516e258b1d8c52910) | ||||
* | [3.6] bpo-30650: Fixed a syntax error: missed right parentheses (GH-2154) ↵ | Serhiy Storchaka | 2017-06-15 | 1 | -1/+1 |
| | | | | | (#2215) (cherry picked from commit 0d32218) | ||||
* | bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() ↵ | Serhiy Storchaka | 2017-04-19 | 1 | -18/+42 |
| | | | | | | | (#1096) (#1180) raised an error. (cherry picked from commit bf623ae8843dc30b28c574bec8d29fc14be59d86) | ||||
* | bpo-29619: Convert st_ino using unsigned integer (#557) (#584) | Victor Stinner | 2017-03-09 | 1 | -5/+8 |
| | | | | | | | bpo-29619: os.stat() and os.DirEntry.inodeo() now convert inode (st_ino) using unsigned integers. (cherry picked from commit 0f6d73343d342c106cda2219ebb8a6f0c4bd9b3c) (Misc/NEWS conflict handled manually.) | ||||
* | Issue #29513: Fixed a reference leak in os.scandir() added in issue #29034. | Serhiy Storchaka | 2017-02-09 | 1 | -7/+0 |
| | |||||
* | Issue #29092: Sync os.stat's doc and docstring on path type. | Xiang Zhang | 2017-01-22 | 1 | -2/+3 |
|\ | |||||
* | | Issue #29034: Fix memory leak and use-after-free in path_converter. | Xiang Zhang | 2017-01-08 | 1 | -53/+56 |
| | | |||||
* | | Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize | Serhiy Storchaka | 2016-11-20 | 1 | -1/+1 |
| | | | | | | | | with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize. | ||||
* | | Issue #28732: Raise ValueError when argv[0] is empty | Steve Dower | 2016-11-20 | 1 | -0/+34 |
|\ \ | |/ | |||||
| * | Issue #28732: Raise ValueError when argv[0] is empty. | Steve Dower | 2016-11-20 | 1 | -0/+9 |
| | | |||||
* | | Issue #28732: Raise ValueError when os.spawn*() is passed an empty tuple of ↵ | Steve Dower | 2016-11-20 | 1 | -0/+10 |
| | | | | | | | | arguments | ||||
* | | Merge from 3.5 and fix a few other functions missing IPH handling. | Steve Dower | 2016-11-20 | 1 | -2/+7 |
|\ \ | |/ | |||||
| * | Issue #28732: Fix crash in os.spawnv() with no elements in args | Steve Dower | 2016-11-20 | 1 | -0/+16 |
| | | | | | | | | Prevents crashes in some other posixmodule.c functions | ||||
* | | Issue #28585: Restored docstring of os._isdir(). | Serhiy Storchaka | 2016-11-08 | 1 | -4/+2 |
|\ \ | |/ | |||||
| * | Issue #28585: Restored docstring of os._isdir(). | Serhiy Storchaka | 2016-11-08 | 1 | -4/+2 |
| | | |||||
* | | Issue #28394: More typo fixes for 3.6+ | Martin Panter | 2016-10-10 | 1 | -1/+1 |
| | | |||||
* | | Issue #27998: Fixed bytes path support in os.scandir() on Windows. | Serhiy Storchaka | 2016-10-08 | 1 | -46/+43 |
| | | | | | | | | Patch by Eryk Sun. | ||||
* | | Increase buffer for readlink() in case OS will support longer names one day. | Christian Heimes | 2016-09-23 | 1 | -3/+4 |
|\ \ | |/ | |||||
| * | Increase buffer for readlink() in case OS will support longer names one day. | Christian Heimes | 2016-09-23 | 1 | -3/+4 |
| | | |||||
| * | Issue #28075: Fix test_access_denied in Python 3.5 | Berker Peksag | 2016-09-18 | 1 | -2/+4 |
| | | | | | | | | I forgot there two variations of os.stat() in Python 3.5. | ||||
* | | Fix memleak in os.getrandom() | Victor Stinner | 2016-09-20 | 1 | -10/+18 |
| | | | | | | | | | | | | | | | | Issue #27778: Fix a memory leak in os.getrandom() when the getrandom() is interrupted by a signal and a signal handler raises a Python exception. Modify also os_getrandom_impl() to avoid the temporary buffer, use directly a Python bytes object. | ||||
* | | Fix memory leak in path_converter() | Victor Stinner | 2016-09-19 | 1 | -1/+1 |
| | | | | | | | | | | Issue #28200: Replace PyUnicode_AsWideCharString() with PyUnicode_AsUnicodeAndSize(). | ||||
* | | Issue #28075: Merge from 3.5 | Berker Peksag | 2016-09-17 | 1 | -2/+4 |
|\ \ | |/ | |||||
| * | Issue #28075: Check for ERROR_ACCESS_DENIED in Windows implementation of ↵ | Berker Peksag | 2016-09-17 | 1 | -2/+4 |
| | | | | | | | | | | | | os.stat() Patch by Eryk Sun. | ||||
* | | Issue #28156: Export os.getpid() conditionally | Berker Peksag | 2016-09-15 | 1 | -0/+2 |
| | | | | | | | | Patch by Ed Schouten. | ||||
* | | Issue #28114: Fix a crash in parse_envlist() when env contains byte strings | Berker Peksag | 2016-09-15 | 1 | -17/+39 |
| | | | | | | | | Patch by Eryk Sun. | ||||
* | | Adds missing assert suppression. | Steve Dower | 2016-09-12 | 1 | -0/+4 |
| | | |||||
* | | Issue #27781: Fixes uninitialized fd when !MS_WINDOWS and !HAVE_OPENAT | Steve Dower | 2016-09-09 | 1 | -2/+3 |
| | | |||||
* | | use Py_MAX | Benjamin Peterson | 2016-09-08 | 1 | -1/+1 |
| | | |||||
* | | Issue #23524: Finish removing _PyVerify_fd from sources | Steve Dower | 2016-09-08 | 1 | -72/+3 |
| | | |||||
* | | Fix mismatched if blocks in posixmodule.c. | Steve Dower | 2016-09-08 | 1 | -2/+1 |
| | | |||||
* | | Issue #27781: Change file system encoding on Windows to UTF-8 (PEP 529) | Steve Dower | 2016-09-08 | 1 | -640/+285 |
| | | |||||
* | | more linux -> __linux__ | Benjamin Peterson | 2016-09-07 | 1 | -1/+1 |
| | | |||||
* | | os.urandom() now blocks on Linux | Victor Stinner | 2016-09-06 | 1 | -2/+1 |
| | | | | | | | | | | | | | | Issue #27776: The os.urandom() function does now block on Linux 3.17 and newer until the system urandom entropy pool is initialized to increase the security. This change is part of the PEP 524. |