Neal Norwitz
4f3be8a0a9
Security patches from Apple: prevent int overflow when allocating memory
2008-07-31 17:08:14 +00:00
Martin v. Löwis
5212da1b96
Patch #2111 : Avoid mmap segfault when modifying a PROT_READ block.
2008-05-23 14:30:44 +00:00
Neal Norwitz
7b3c031790
Alexander Belopolsky pointed out that pos is a size_t
2006-08-22 13:57:07 +00:00
Neal Norwitz
47f0ffa7ee
Fix a couple of ssize-t issues reported by Alexander Belopolsky on python-dev
2006-08-21 18:44:09 +00:00
Neal Norwitz
5ed4997e1f
Get rid of compiler warning
2006-08-13 18:41:15 +00:00
Neal Norwitz
e9ac0bb169
Check return result of PyModule_GetDict().
...
Fix a bunch of refleaks in the init of the module. This would only be found
when running python -v.
2006-08-13 18:11:27 +00:00
Neal Norwitz
8a87f5d37e
Patch #1538606 , Patch to fix __index__() clipping.
...
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.
2006-08-12 17:03:09 +00:00
Martin v. Löwis
0e8bd7e1cc
Patch #1495999 : Part two of Windows CE changes.
...
- update header checks, using autoconf
- provide dummies for getenv, environ, and GetVersion
- adjust MSC_VER check in socketmodule.c
2006-06-10 12:23:46 +00:00
Georg Brandl
96a8c3954c
Make use of METH_O and METH_NOARGS where possible.
...
Use Py_UnpackTuple instead of PyArg_ParseTuple where possible.
2006-05-29 21:04:52 +00:00
Georg Brandl
2cfaa34dfa
Correct some value converting strangenesses.
2006-05-29 19:39:45 +00:00
Guido van Rossum
38fff8c4e4
Checking in the code for PEP 357.
...
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).
2006-03-07 18:50:55 +00:00
Martin v. Löwis
02cbf4ae4b
More unconsting.
2006-02-27 17:20:04 +00:00
Martin v. Löwis
5bb8a15593
Fix typo.
2006-02-18 12:49:49 +00:00
Martin v. Löwis
151860752f
Fix size computation on Win64.
2006-02-18 12:38:35 +00:00
Thomas Wouters
2c98a7bbc6
Fix typo.
2006-02-17 09:59:00 +00:00
Martin v. Löwis
cfe7e0912c
Remove size restrictions.
2006-02-17 06:59:14 +00:00
Tim Peters
f28829577d
mmap_flush_method(): Squash compiler warning about
...
mixing signed and unsigned types in comparison.
2006-02-17 01:07:39 +00:00
Tim Peters
8f9cc29e74
Remove space between function name and left paren
...
in function calls.
2006-02-17 00:00:20 +00:00
Tim Peters
23721ee96c
Removed pointless parens around return expressions;
...
deleted some curlies around one-line blocks.
2006-02-16 23:50:16 +00:00
Tim Peters
ec0a5f0add
Trimmed trailing whitespace.
2006-02-16 23:47:20 +00:00
Tim Peters
e564e7f939
new_mmap_object(), Windows flavor.
...
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.
2006-02-16 23:46:01 +00:00
Thomas Wouters
dde176593d
More Py_ssize_t format characters.
2006-02-16 21:10:52 +00:00
Martin v. Löwis
ad0a4629be
Use Py_ssize_t for counts and sizes.
2006-02-16 14:30:23 +00:00
Neal Norwitz
3eaf2b5044
Update comment and make accurate.
2006-02-16 08:08:54 +00:00
Martin v. Löwis
18e165558b
Merge ssize_t branch.
2006-02-15 17:27:45 +00:00