Gregory P. Smith [Thu, 15 Mar 2012 01:12:23 +0000 (18:12 -0700)]
Fixes Issue 14234: fix for the previous commit, keep compilation when
using --with-system-expat working when the system expat does not have
salted hash support.
Barry Warsaw [Thu, 15 Mar 2012 00:10:41 +0000 (17:10 -0700)]
- Issue #14234: CVE-2012-0876: Randomize hashes of xml attributes in the hash
table internal to the pyexpat module's copy of the expat library to avoid a
denial of service due to hash collisions. Patch by David Malcolm with some
modifications by the expat project.
Gregory P. Smith [Wed, 14 Mar 2012 22:28:10 +0000 (15:28 -0700)]
Fixes Issue #14234: CVE-2012-0876: Randomize hashes of xml attributes
in the hash table internal to the pyexpat module's copy of the expat
library to avoid a denial of service due to hash collisions.
Patch by David Malcolm with some modifications by the expat project.
Jason R. Coombs [Thu, 8 Mar 2012 23:28:08 +0000 (18:28 -0500)]
Moved symlink support into its own module. Ported can_symlink from Python 3.2, skipping symlink test when it cannot be invoked (such as when the symlink privilege is not present).
Barry Warsaw [Tue, 21 Feb 2012 01:42:21 +0000 (20:42 -0500)]
- Issue #13703: oCERT-2011-003: add -R command-line option and PYTHONHASHSEED
environment variable, to provide an opt-in way to protect against denial of
service attacks due to hash collisions within the dict and set types. Patch
by David Malcolm, based on work by Victor Stinner.
Antoine Pitrou [Thu, 1 Mar 2012 15:26:35 +0000 (16:26 +0100)]
Issue #14159: Fix the len() of weak sets to return a better approximation when some objects are dead or dying.
Moreover, the implementation is now O(1) rather than O(n).
Thanks to Yury Selivanov for reporting.
Éric Araujo [Sun, 26 Feb 2012 00:53:53 +0000 (01:53 +0100)]
Synchronize some distutils tests with 3.2.
- Actually check the contents of the file created by bdist_dumb.
- Don’t use “RECORD” as filename for non-PEP 376 record file
- Don’t start method name with “_test”, it looks like a disabled test
method instead of an helper method
- Fix some idioms (assertIn, addCleanup)
Éric Araujo [Sun, 26 Feb 2012 00:21:31 +0000 (01:21 +0100)]
Hide or remove user-visible XXX notes from distutils doc (#13716).
Requested by Florent Xicluna with the rationale that they make the docs
look unfinished. When I get to replace the XXX notes with the real info
for packaging, I’ll backport it.
Also removed a few XXX notes that were not visible in the HTML but could
waste contributors’ time by suggesting improvements that are never going
to happen for distutils.
Éric Araujo [Sun, 26 Feb 2012 00:10:14 +0000 (01:10 +0100)]
Improve interlinking of archiving/compression modules docs.
- Remove duplicate list of links to the other modules from each
module’s doc (people can already go up to library/archiving and
there they can see the list).
Éric Araujo [Sat, 25 Feb 2012 15:24:59 +0000 (16:24 +0100)]
Add test file for scripts in Tools (#13447).
When people find bugs in scripts such as reindent.py, msgfmt.py or
pygettext.py, we have to try to reproduce the bug manually, apply a fix
and test manually again. The alternative is to only read the code and
trust that it works. This test file is a way to stop that
unsatisfactory state of things and write proper unit tests instead.
Éric Araujo [Sat, 25 Feb 2012 15:13:53 +0000 (16:13 +0100)]
Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884).
These regex changes fix a number of issues for distutils on Windows:
- #6884: impossible to include a file starting with 'build'
- #9691 and #14004: sdist includes too many files
- #13193: test_filelist failures
This commit replaces the incorrect changes done in 557a973709de, c566a3447ba1 and 3925081a7ca0 to fix #13193; we were too eager to fix
the test failures and I did not study the code enough before
greenlighting patches. This time we have unit tests from the problems
reported by users to be sure we have the right fix.