Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #6344: Fixed a crash of mmap.read() when passed a negative argument. | Hirokazu Yamamoto | 2009-06-29 | 1 | -3/+13 |
| | | | | Reviewed by Amaury Forgeot d'Arc. | ||||
* | Issue #6271: mmap tried to close invalid file handle (-1) when annonymous. | Hirokazu Yamamoto | 2009-06-14 | 1 | -1/+2 |
| | | | | (On Unix) Patch by STINNER Victor. | ||||
* | bounds check arguments to mmap.move(). All of them. Really. | Jack Diederich | 2009-04-01 | 1 | -9/+9 |
| | | | | fixes crasher on OS X 10.5 | ||||
* | Issue #5387: Fixed mmap.move crash by integer overflow. (take2) | Hirokazu Yamamoto | 2009-03-31 | 1 | -1/+1 |
| | |||||
* | Apply patch for netbsd multiprocessing support | Jesse Noller | 2009-03-31 | 1 | -1/+5 |
| | |||||
* | Issue #5387: Fixed mmap.move crash by integer overflow. | Hirokazu Yamamoto | 2009-03-31 | 1 | -4/+2 |
| | |||||
* | Issue #5385: Fixed mmap crash after resize failure on windows. | Hirokazu Yamamoto | 2009-03-05 | 1 | -6/+13 |
| | | | | | Now uses NULL instead of INVALID_HANDLE_VALUE as invalid map handle because CreateFileMapping returns NULL when error occurs. | ||||
* | Issue #1733986: Fixed mmap crash in accessing elements of second map object | Hirokazu Yamamoto | 2009-02-28 | 1 | -1/+1 |
| | | | | with same tagname but larger size than first map. (Windows) | ||||
* | Issue #5386: mmap.write_byte didn't check map size, so it could cause buffer | Hirokazu Yamamoto | 2009-02-28 | 1 | -4/+11 |
| | | | | overrun. | ||||
* | Issue #5282: Fixed mmap resize on 32bit windows and unix. When offset > 0, | Hirokazu Yamamoto | 2009-02-17 | 1 | -2/+2 |
| | | | | The file was resized to wrong size. | ||||
* | Issue #5292: Fixed mmap crash on its boundary access m[len(m)]. | Hirokazu Yamamoto | 2009-02-17 | 1 | -2/+2 |
| | |||||
* | Fix strange character in the docstring. | Thomas Heller | 2008-08-19 | 1 | -1/+1 |
| | |||||
* | Security patches from Apple: prevent int overflow when allocating memory | Neal Norwitz | 2008-07-31 | 1 | -1/+1 |
| | |||||
* | This reverts r63675 based on the discussion in this thread: | Gregory P. Smith | 2008-06-09 | 1 | -18/+18 |
| | | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread. | ||||
* | Renamed PyString to PyBytes | Christian Heimes | 2008-05-26 | 1 | -18/+18 |
| | |||||
* | Issue 2112. mmap does not raises EnvironmentError no more, but | Facundo Batista | 2008-02-17 | 1 | -1/+4 |
| | | | | a subclass of it. Thanks John Lenton. | ||||
* | Bug #2111: mmap segfaults when trying to write a block opened with PROT_READ | Christian Heimes | 2008-02-15 | 1 | -0/+4 |
| | | | | Thanks to Thomas Herve for the fix. | ||||
* | Use int for the sign rather than a char. char can be signed or unsigned. | Neal Norwitz | 2008-01-27 | 1 | -1/+1 |
| | | | | It's system dependent. This might fix the problem with test_rfind failing. | ||||
* | Mostly reformat. Also set an error and return NULL if neither MS_WINDOWS | Neal Norwitz | 2008-01-27 | 1 | -15/+13 |
| | | | | nor UNIX is defined. This may have caused problems on cygwin. | ||||
* | Cleanup the code a bit. test_rfind is failing on PPC and PPC64 buildbots, | Neal Norwitz | 2008-01-26 | 1 | -7/+7 |
| | | | | this might fix the problem. | ||||
* | Use Py_TYPE() instead of ->ob_type | Christian Heimes | 2008-01-23 | 1 | -1/+1 |
| | |||||
* | Fix for #1087741 patch. | Georg Brandl | 2008-01-22 | 1 | -1/+1 |
| | |||||
* | #1087741: make mmap.mmap the type of mmap objects, not a | Georg Brandl | 2008-01-21 | 1 | -20/+27 |
| | | | | factory function. Allow it to be subclassed. | ||||
* | Switch mmap from old Py_FindMethod to new PyObject_GenericGetAttr attribute ↵ | Georg Brandl | 2008-01-20 | 1 | -10/+36 |
| | | | | | | access. Fixes #1087735. | ||||
* | Patch #976880: add mmap .rfind() method, and 'end' paramter to .find(). | Andrew M. Kuchling | 2008-01-19 | 1 | -5/+34 |
| | | | | Contributed by John Lenton. | ||||
* | Check for fd of -1 to save fsync() and fstat() call | Andrew M. Kuchling | 2008-01-10 | 1 | -2/+4 |
| | |||||
* | #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵ | Christian Heimes | 2007-12-19 | 1 | -1/+1 |
| | | | | Py_REFCNT. Macros for b/w compatibility are available. | ||||
* | Fix some compiler warnings for signed comparisons on Unix and Windows. | Neal Norwitz | 2007-10-31 | 1 | -2/+2 |
| | |||||
* | Add phuang patch from Issue 708374 which adds offset parameter to mmap module. | Travis E. Oliphant | 2007-10-23 | 1 | -34/+75 |
| | |||||
* | Improve extended slicing support in builtin types and classes. Specifically: | Thomas Wouters | 2007-08-28 | 1 | -1/+151 |
| | | | | | | | | | | | | | | | | | | | | - Specialcase extended slices that amount to a shallow copy the same way as is done for simple slices, in the tuple, string and unicode case. - Specialcase step-1 extended slices to optimize the common case for all involved types. - For lists, allow extended slice assignment of differing lengths as long as the step is 1. (Previously, 'l[:2:1] = []' failed even though 'l[:2] = []' and 'l[:2:None] = []' do not.) - Implement extended slicing for buffer, array, structseq, mmap and UserString.UserString. - Implement slice-object support (but not non-step-1 slice assignment) for UserString.MutableString. - Add tests for all new functionality. | ||||
* | PEP 3123: Provide forward compatibility with Python 3.0, while keeping | Martin v. Löwis | 2007-07-21 | 1 | -3/+2 |
| | | | | | backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT. | ||||
* | Alexander Belopolsky pointed out that pos is a size_t | Neal Norwitz | 2006-08-22 | 1 | -1/+1 |
| | |||||
* | Fix a couple of ssize-t issues reported by Alexander Belopolsky on python-dev | Neal Norwitz | 2006-08-21 | 1 | -1/+1 |
| | |||||
* | Get rid of compiler warning | Neal Norwitz | 2006-08-13 | 1 | -2/+2 |
| | |||||
* | Check return result of PyModule_GetDict(). | Neal Norwitz | 2006-08-13 | 1 | -22/+24 |
| | | | | | Fix a bunch of refleaks in the init of the module. This would only be found when running python -v. | ||||
* | Patch #1538606, Patch to fix __index__() clipping. | Neal Norwitz | 2006-08-12 | 1 | -22/+8 |
| | | | | | | | I modified this patch some by fixing style, some error checking, and adding XXX comments. This patch requires review and some changes are to be expected. I'm checking in now to get the greatest possible review and establish a baseline for moving forward. I don't want this to hold up release if possible. | ||||
* | Patch #1495999: Part two of Windows CE changes. | Martin v. Löwis | 2006-06-10 | 1 | -0/+3 |
| | | | | | | - update header checks, using autoconf - provide dummies for getenv, environ, and GetVersion - adjust MSC_VER check in socketmodule.c | ||||
* | Make use of METH_O and METH_NOARGS where possible. | Georg Brandl | 2006-05-29 | 1 | -20/+10 |
| | | | | Use Py_UnpackTuple instead of PyArg_ParseTuple where possible. | ||||
* | Correct some value converting strangenesses. | Georg Brandl | 2006-05-29 | 1 | -3/+3 |
| | |||||
* | Checking in the code for PEP 357. | Guido van Rossum | 2006-03-07 | 1 | -17/+8 |
| | | | | | | This was mostly written by Travis Oliphant. I've inspected it all; Neal Norwitz and MvL have also looked at it (in an earlier incarnation). | ||||
* | More unconsting. | Martin v. Löwis | 2006-02-27 | 1 | -2/+2 |
| | |||||
* | Fix typo. | Martin v. Löwis | 2006-02-18 | 1 | -1/+1 |
| | |||||
* | Fix size computation on Win64. | Martin v. Löwis | 2006-02-18 | 1 | -12/+46 |
| | |||||
* | Fix typo. | Thomas Wouters | 2006-02-17 | 1 | -1/+1 |
| | |||||
* | Remove size restrictions. | Martin v. Löwis | 2006-02-17 | 1 | -29/+19 |
| | |||||
* | mmap_flush_method(): Squash compiler warning about | Tim Peters | 2006-02-17 | 1 | -2/+2 |
| | | | | mixing signed and unsigned types in comparison. | ||||
* | Remove space between function name and left paren | Tim Peters | 2006-02-17 | 1 | -94/+92 |
| | | | | in function calls. | ||||
* | Removed pointless parens around `return` expressions; | Tim Peters | 2006-02-16 | 1 | -22/+20 |
| | | | | deleted some curlies around one-line blocks. | ||||
* | Trimmed trailing whitespace. | Tim Peters | 2006-02-16 | 1 | -41/+41 |
| | |||||
* | new_mmap_object(), Windows flavor. | Tim Peters | 2006-02-16 | 1 | -2/+16 |
| | | | | | | | | | | | | | | On a box where sizeof(size_t) == 4, C doesn't define what happens when a size_t value is shifted right by 32 bits, and this caused test_mmap to fail on Windows in a debug build. So use different code to break the size apart depending on how large size_t actually is. This looks like an illusion, since lots of code in this module still appears to assume sizes can't be more than 32 bits (e.g., the internal _GetMapSize() still returns an int), but at least test_mmap passes again. |