Antoine Pitrou
c83ea137d7
Untabify C files. Will watch buildbots.
2010-05-09 14:46:46 +00:00
Martin v. Löwis
fee1c7f4c9
Issue #4494 : Fix build with Py_NO_ENABLE_SHARED on Windows.
2009-02-02 14:23:16 +00:00
Kristján Valur Jónsson
019fcbc2e8
Fix potential crash in path manipulation on windows
2007-04-13 22:20:13 +00:00
Martin v. Löwis
d22968af17
Patch #1232023 : Don't include empty path component from registry,
...
so that the current directory does not get added to sys.path.
Also fixes #1526785 .
2006-07-24 11:54:53 +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
Tim Peters
c7f6cf6247
getpythonregpath(): Squash compiler warning about
...
mixing signed and unsigned types in comparison.
Relatedly, `dataSize` is declared as DWORD, not as
int, so change relevant cast from (int) to (DWORD).
2006-02-16 00:35:06 +00:00
Martin v. Löwis
18e165558b
Merge ssize_t branch.
2006-02-15 17:27:45 +00:00
Georg Brandl
7eb4b7d177
Fix all wrong instances of "it's".
2005-07-22 21:49:32 +00:00
Tim Peters
8484fbf0f6
SF bug 1003471: Python 1.5.2 security vulnerability
...
This was probably fixed in rev 1.32 of getpath.c, but there are so
many paths thru the code that invoke joinpath() it's not at all
obvious that it *is* fixed. It doesn't help confidence that a crucial
precondition for calling joinpath() was neither documented nor verified.
It is now, and joinpath() will barf with a fatal error now rather than
overrun the buffer, if the precondition isn't met.
Note that this patch only changes the Windows flavor. I attached another
patch to the bug report for the POSIX flavor (which I can't test
conveniently).
2004-08-07 19:12:27 +00:00
Thomas Heller
6019f9a65d
Remove a stray single quote.
...
Will backport to release23-maint.
2003-08-18 17:53:33 +00:00
Mark Hammond
61bb35f440
Fix [ 583477 ] wrong dest size.
...
Note this code is not used by the core on Win32, but in a block used only
by Windows CE.
2003-01-29 22:38:29 +00:00
Neal Norwitz
a8aed02f1e
Make sure zip_path is null-terminated, since it's on the stack
2002-12-31 12:35:41 +00:00
Just van Rossum
52e14d640b
PEP 302 + zipimport:
...
- new import hooks in import.c, exposed in the sys module
- new module called 'zipimport'
- various changes to allow bootstrapping from zip files
I hope I didn't break the Windows build (or anything else for that
matter), but then again, it's been sitting on sf long enough...
Regarding the latest discussions on python-dev: zipimport sets
pkg.__path__ as specified in PEP 273, and likewise, sys.path item such as
/path/to/Archive.zip/subdir/ are supported again.
2002-12-30 22:08:05 +00:00
Mark Hammond
2795dae20d
Remove a strange single quote that didn't seem to upset the compilers!
2002-07-22 13:28:21 +00:00
Martin v. Löwis
6238d2b024
Patch #569753 : Remove support for WIN16.
...
Rename all occurrences of MS_WIN32 to MS_WINDOWS.
2002-06-30 15:26:10 +00:00
Martin v. Löwis
cdc4451222
Include <unistd.h> in Python.h. Fixes #500924 .
2002-01-12 11:05:12 +00:00
Mark Hammond
19fdbfb5c4
Fix bug #410274 - sys.prefix isn't always set.
...
If after calculating sys.path we do not have sys.prefix set, we loop over all path entries checking if one can point to our home directory.
2001-09-07 14:08:01 +00:00
Neil Schemenauer
7d4bb9f179
Add -E command line switch (ignore environment variables like PYTHONHOME
...
and PYTHONPATH).
2001-07-23 16:30:27 +00:00
Mark Hammond
5edc627f66
Checkin updated version of patch #103933 . As Thomas says, fixes the bugs #131064 , #129584 , #127722 . See the discussion in bug #131064
2001-02-23 11:38:38 +00:00
Mark Hammond
8bf9e3b943
Prevent possible buffer overflow exploits under Windows. As per (the very quick) patch Patch #101801 .
2000-10-07 11:10:50 +00:00
Mark Hammond
e61aca7d4a
Patch for [ Bug #113828 ] getpythonregpath with null data in registry key
...
If there was a NULL registry key, Python could barf.
Also wraps some surrounding lines to 80 chars.
2000-09-10 09:14:53 +00:00
Guido van Rossum
8586991099
REMOVED all CWI, CNRI and BeOpen copyright markings.
...
This should match the situation in the 1.6b1 tree.
2000-09-01 23:29:29 +00:00
Thomas Wouters
a534594fc7
ANSIfication: remove very-old-varargs code, fix function declarations so
...
they include prototypes.
2000-07-22 23:59:33 +00:00
Thomas Wouters
7889010731
Miscelaneous ANSIfications. I'm assuming here 'main' should take (int,
...
char**) and return an int even on PC platforms. If not, please fix
PC/utils/makesrc.c ;-P
2000-07-22 19:25:51 +00:00
Guido van Rossum
ffcc3813d8
Change copyright notice - 2nd try.
2000-06-30 23:58:06 +00:00