summaryrefslogtreecommitdiffstats
path: root/Modules/zipimport.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREFSerhiy Storchaka2016-04-101-1/+1
| | | | in places where Py_DECREF was used.
* Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-061-1/+1
|
* Issue #19883: Fixed possible integer overflows in zipimport.Serhiy Storchaka2016-01-281-153/+214
|
* merge 3.4Benjamin Peterson2016-01-221-0/+4
|\
| * reject negative data_sizeBenjamin Peterson2016-01-221-0/+4
| |
* | merge 3.4 (#26171)Benjamin Peterson2016-01-211-0/+5
|\ \ | |/
| * prevent buffer overflow in get_data (closes #26171)Benjamin Peterson2016-01-211-0/+5
| |
* | merge 3.4Benjamin Peterson2016-01-211-0/+1
|\ \ | |/
| * fix refleak in error conditionBenjamin Peterson2016-01-211-0/+1
| |
* | Issue #17633: Improve support for namespace packages with zipimport.Brett Cannon2016-01-151-16/+32
| | | | | | | | | | | | | | | | | | Previously zipimport mistakenly limited namespace support to only the top-level of the zipfile when it should have supported an arbitrary depth. Thanks to Phil Connel for the bug report and initial patch and Mike Romberg for the final patch.
* | Issue #20440: Massive replacing unsafe attribute setting code with specialSerhiy Storchaka2015-12-241-2/+1
| | | | | | | | macro Py_SETREF.
* | Issue #23731: Implement PEP 488.Brett Cannon2015-04-131-15/+2
| | | | | | | | | | | | The concept of .pyo files no longer exists. Now .pyc files have an optional `opt-` tag which specifies if any extra optimizations beyond the peepholer were applied.
* | Issue #23696: Chain ZipImportError to the OSErrorVictor Stinner2015-03-201-1/+5
| |
* | Issue #19428: Handle PyMarshal_Read*() errors in run_pyc_file()Victor Stinner2015-03-181-0/+3
| | | | | | | | Detect also earlier PyMarshal_Read*() errors in zipimport.
* | Issue #23694: Enhance _Py_fopen(), it now raises an exception on errorVictor Stinner2015-03-181-6/+2
|/ | | | | * If fopen() fails, OSError is raised with the original filename object. * The GIL is now released while calling fopen()
* Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integerSerhiy Storchaka2015-02-161-1/+1
| | | | overflows. Added few missed PyErr_NoMemory().
* merge backout for #20621Benjamin Peterson2014-02-161-236/+48
|
* merge 3.3Benjamin Peterson2014-01-091-3/+1
|\
| * fix zipimport ref leakBenjamin Peterson2014-01-091-3/+1
| |
* | Fixes issue #19081: When a zipimport .zip file in sys.path being imported fromGregory P. Smith2014-01-081-48/+238
|\ \ | |/ | | | | | | | | is modified during the lifetime of the Python process after zipimport has already cached the zip's table of contents we detect this and recover rather than read bad data from the .zip (causing odd import errors).
| * Fixes Issue #19081: When a zipimport .zip file in sys.path being imported fromGregory P. Smith2014-01-081-47/+238
| | | | | | | | | | | | is modified during the lifetime of the Python process after zipimport has already cached the zip's table of contents we detect this and recover rather than read bad data from the .zip (causing odd import errors).
* | Issue #19515: Remove duplicated identifiers in zipimport.cVictor Stinner2013-11-121-6/+4
| |
* | Issue #18408: Fix zipimport, handle PyUnicode_Substring() and get_subname() ↵Victor Stinner2013-10-291-2/+7
| | | | | | | | failures
* | Issue #19428: zipimport now handles errors when reading truncated or invalidVictor Stinner2013-10-291-3/+13
| | | | | | | | ZIP archive.
* | Issue #18571: Implementation of the PEP 446: file descriptors and file handlesVictor Stinner2013-08-271-2/+2
| | | | | | | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
* | Grammatical mistake in a commentBrett Cannon2013-06-211-1/+1
| |
* | Issue #8745: Small speed up zipimport on Windows. Patch by Catalin Iacob.Serhiy Storchaka2013-02-161-9/+18
|/
* MERGE: Closes #15897: zipimport.c doesn't check return value of fseek()Jesus Cea2012-10-031-7/+36
|\
| * Closes #15897: zipimport.c doesn't check return value of fseek()Jesus Cea2012-10-031-7/+36
| |
* | Fixed two memory leaks in make_filename() in zipimport.c. The allocated ↵Christian Heimes2012-09-101-2/+6
| | | | | | | | buffer wasn't cleaned up in two error cases. CID 486832
* | Closes #15737: Fix potential NULL dereference in zipimport.c.Stefan Krah2012-08-201-2/+2
| |
* | capitialize enum membersBenjamin Peterson2012-05-251-17/+17
| |
* | use PyDict_ContainsBenjamin Peterson2012-05-251-3/+3
| |
* | return NULL on errorBenjamin Peterson2012-05-251-2/+3
| |
* | actually return the resultBenjamin Peterson2012-05-251-1/+1
| |
* | simplify and rewrite the zipimport part of 702009f3c0b1 a bitBenjamin Peterson2012-05-251-51/+41
| |
* | plug ref leakBenjamin Peterson2012-05-251-0/+1
| |
* | issue 14660: Implement PEP 420, namespace packages.Eric V. Smith2012-05-251-8/+140
| |
* | Fix zipimport.c's read_directory() to use appropriate types for the valuesGregory P. Smith2012-01-301-4/+5
|\ \ | |/ | | | | | | | | being read from the header vs the values being used by fseek and ftell (Py_ssize_t for those). Updates the Py_BuildValue format string to match (including several existing wrong 'i's that should have been 'l's).
| * Fix zip_import.c's read_directory() to use appropriate types for the valuesGregory P. Smith2012-01-301-4/+5
| | | | | | | | | | | | | | | | being read from the header vs the values being used by fseek and ftell (Py_ssize_t for those) and how they are computed. Py_ssize_t is used for actual file offsets so that files greater than 2gigs could be supported. Updates the Py_BuildValue format string to match (including several existing wrong 'i's that should have been 'l's).
* | Issue #13645: pyc files now contain the size of the corresponding sourceAntoine Pitrou2012-01-131-1/+3
| | | | | | | | | | code, to avoid timestamp collisions (especially on filesystems with a low timestamp resolution) when checking for freshness of the bytecode.
* | (Merge 3.2) Handle correctly _Py_fopen() error: don't replace the exceptionVictor Stinner2011-12-181-3/+5
|\ \ | |/
| * Handle correctly _Py_fopen() error: don't replace the exceptionVictor Stinner2011-12-181-3/+5
| |
* | import.c now catchs _Py_stat() exceptionsVictor Stinner2011-12-181-2/+2
| | | | | | | | _Py_stat() now returns -2 if an exception was raised.
* | Drop unused variable.Martin v. Löwis2011-10-311-1/+0
| |
* | Fix typo.Martin v. Löwis2011-10-311-3/+2
| |
* | Replace Py_UCS4_ API with Unicode API.Martin v. Löwis2011-10-311-130/+90
| |
* | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-1/+1
| |
* | Fix a compiler warning in zipimportVictor Stinner2011-10-111-1/+1
| |
* | Use identifier API for PyObject_GetAttrString.Martin v. Löwis2011-10-101-2/+3
| |