summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Backported r55839 and r61350Martin v. Löwis2008-12-132-0/+19
| | | | | | Issue #4469: Prevent expandtabs() on string and unicode objects from causing a segfault when a large width is passed on 32-bit platforms.
* #4317: Fix an Array Bounds Read in imageop.rgb2rgb8.Amaury Forgeot d'Arc2008-11-181-1/+2
| | | | Backport of r67266
* backport the security fix part of r67246Benjamin Peterson2008-11-171-0/+19
|
* - Security Issue #2: imageop did not validate arguments correctly and couldMatthias Klose2008-11-121-8/+63
| | | | | | segfault as a result. CVE-2008-4864. backport r66689
* Revert the following revisions, as they don't fix securityMartin v. Löwis2008-03-024-36/+6
| | | | | | | problems: 52448, 52468, 52472, 52475, 52646, 52797, 52802, 52863, 52999, 53001, 53101, 53371, 53373, 53383, 53384, 53736, 53812, 53921, 55578, 55580, 55581, 55772, 55775, 56557, 57093, 57094, 58630, 60114
* Fix for Windows: close a temporary file before trying to delete it.Hye-Shik Chang2007-06-051-0/+2
|
* (Backport from r55770)Hye-Shik Chang2007-06-051-1/+12
| | | | | | Bug #1728403: Fix a bug that CJKCodecs StreamReader hangs when it reads a file that ends with incomplete sequence and sizehint argument for .read() is specified.
* Backported r51621 from p3yk:Thomas Wouters2007-02-252-4/+4
| | | | | Don't use a fixed temporary name (gdbm). Don't use our own temp name creation (dbm).
* Add extra SHA testsAndrew M. Kuchling2006-11-201-1/+18
|
* Backport of the pieces of trunk rev 46589 relevant toTim Peters2006-10-092-3/+25
| | | | | | | | | | | | | fixing an unlikely crash bug in dict resizing, SF bug 1456209. The rest of rev 46589 changes whether Python suppresses exceptions during some dict-related comparisons. While I think that's a good idea, it does change visible behavior at times, and there was already some complaining about that on the trunk. Not a good idea for backporting. The part of 46589 checked in here can at worst stop segfaults, and I doubt anyone will gripe about that ;-)
* Backport r45505, r45573, r45576Martin v. Löwis2006-10-091-0/+5
| | | | | | | | | | | | | | | | | | - reset errno before calling confstr - use confstr() doc to simplify checks afterwards - Correct implementation and documentation of os.confstr. Add a simple test case. I've yet to figure out how to provoke a None return I can test. - Address issues brought up by MvL on python-checkins. I tested this with valgrind on amd64. The man pages I found for diff architectures are inconsistent on this. I'm not entirely sure this change is correct for all architectures either. Perhaps we should just over-allocate and not worry about it? The change to return None instead of "" in case of unconfigured values has not been backported.
* Port of universal binary support for Mac OSX from python 2.5. This takes awayRonald Oussoren2006-10-081-2/+2
| | | | | | | | the need for the out-of-tree universal binary support that was used to build the 2.4.3 installer. Missing here relative to that tree are some changes to IDLE, IMHO those patches aren't appropriate for the 2.4 branch and users are better of using 2.5's IDLE.
* Backport from trunk r52223:Hye-Shik Chang2006-10-081-1/+11
| | | | | Bug #1572832: fix a bug in ISO-2022 codecs which may cause segfault when encoding non-BMP unicode characters. (Submitted by Ray Chason)
* [Backport r51248 | neal.norwitz]Andrew M. Kuchling2006-10-051-0/+8
| | | | | | | Fix segfault when doing string formatting on subclasses of long if __oct__, __hex__ don't return a string. Klocwork 308
* A review of overflow-detecting code in the 2.4 branch.Armin Rigo2006-10-042-4/+17
| | | | | | | | | | | | * unified the way intobject, longobject and mystrtoul handle values around -sys.maxint-1. * in general, trying to entierely avoid overflows in any computation involving signed ints or longs is extremely involved. Fixed a few simple cases where a compiler might be too clever (but that's all guesswork). * more overflow checks against bad data in marshal.c.
* Fix integer negation and absolute value to not relyMartin v. Löwis2006-10-041-0/+1
| | | | on undefined behaviour of the C compiler anymore.
* [Backport rev. 51728 by neal.norwitz]Andrew M. Kuchling2006-10-032-2/+2
| | | | Patch #1540470, for OpenBSD 4.0. Backport candidate for 2.[34].
* Bug #1556784: allow format strings longer than 127 characters inGeorg Brandl2006-09-301-0/+1
| | | | | datetime's strftime function. (backport from rev. 52072)
* Bug #1560617: in pyclbr, return full module name not only for classes,Georg Brandl2006-09-301-0/+3
| | | | | but also for functions. (backport from rev. 52069)
* Patch #1567691: super() and new.instancemethod() now don't acceptGeorg Brandl2006-09-302-0/+15
| | | | | | keyword arguments any more (previously they accepted them, but didn't use them). (backport from rev. 52058)
* [Backport rev. 46882 by neal.norwitz]Andrew M. Kuchling2006-09-294-6/+50
| | | | Fix the socket tests so they can be run concurrently. Backport candidate
* Backport 51850 from release25-maint branch.Neal Norwitz2006-09-112-15/+225
| | | | | | | As mentioned on python-dev, reverting patch #1504333 because it introduced an infinite loop in rev 47154. This patch also adds a test to prevent the regression.
* Backport from trunk r51737:Hye-Shik Chang2006-09-072-0/+8
| | | | | | | | | Fixed a few bugs on cjkcodecs: - gbk and gb18030 codec now handle U+30FB KATAKANA MIDDLE DOT correctly. - iso2022_jp_2 codec now encodes into G0 for KS X 1001, GB2312 codepoints to conform the standard. - iso2022_jp_3 and iso2022_jp_2004 codec can encode JIS X 0213:2 codepoints now.
* Backport trunk's revision 51565:Thomas Wouters2006-08-241-0/+7
| | | | | | Fix SF bug #1545837: array.array borks on deepcopy. array.__deepcopy__() needs to take an argument, even if it doesn't actually use it. Will backport to 2.5 and 2.4 (if applicable.)
* Backport rev 51448:Georg Brandl2006-08-221-0/+4
| | | | | - Patch #1541585: fix buffer overrun when performing repr() on a unicode string in a build with wide unicode (UCS-4) support.
* Add an additional test: BZ2File write methods should raise IOErrorGeorg Brandl2006-08-141-0/+9
| | | | | when file is read-only. (backport from rev. 51287)
* Patch #1535500: fix segfault in BZ2File.writelines and make sure itGeorg Brandl2006-08-141-0/+2
| | | | | raises the correct exceptions. (backport from rev. 51285)
* Backport whitespace-normalization-proofing test_cgi fix.Georg Brandl2006-08-111-2/+2
|
* Chris McDonough's patch to defend against certain DoS attacks on FieldStorage.Georg Brandl2006-08-112-0/+71
| | | | SF bug #1112549. (backport from rev. 51190)
* Backport fixes for #1523610 (crashes in PyArg_ParseTuple):Georg Brandl2006-08-091-1/+18
| | | | rev. 51158 and rev. 50843.
* memcmp() can return values other than -1, 0, and +1 but tp_compareThomas Heller2006-08-081-0/+1
| | | | must not.
* Don't produce output in test_builtin.Georg Brandl2006-08-061-2/+2
| | | | (backport from rev. 51131)
* Bug #1535165: fixed a segfault in input() and raw_input() whenGeorg Brandl2006-08-061-0/+8
| | | | | sys.stdin is closed. (backport from rev. 51129)
* Bug #1535182: really test the xreadlines() method of bz2 objects.Georg Brandl2006-08-061-1/+1
| | | | (backport from rev. 51126)
* Patch #1529686: run test_iterlen and test_email_codecs in 2.4.Georg Brandl2006-07-282-7/+9
|
* Merge rev 50882 from the trunk.Tim Peters2006-07-271-7/+0
| | | | | | Bug #1529297: The rewrite of doctest for Python 2.4 unintentionally lost that tests are sorted by name before being run. ``DocTestFinder`` has been changed to sort the list of tests it returns.
* Put method-wrappers into trashcan. Fixes #927248.Martin v. Löwis2006-07-031-0/+8
|
* SF bug #1504333: sgmlib should allow angle brackets in quoted valuesFred Drake2006-06-291-0/+15
| | | | | | | (modified patch by Sam Ruby; changed to use separate REs for start and end tags to reduce matching cost for end tags; extended tests; updated to avoid breaking previous changes to support IPv6 addresses in unquoted attribute values)
* - SF bug #853506: IP6 address parsing in sgmllibFred Drake2006-06-231-0/+8
| | | | ('[' and ']' were not accepted in unquoted attribute values)
* Backport of r47061.Armin Rigo2006-06-211-0/+15
|
* Add the new test from the #1503157 patch to the branch.Georg Brandl2006-06-101-0/+2
|
* Backport of fix of bug #532646 for new-style classes.Brett Cannon2006-06-091-0/+16
|
* [Bug #1472827] Correctly escape newlines and tabs in attribute values in ↵Andrew M. Kuchling2006-06-091-2/+5
| | | | saxutils.XMLGenerator
* Remove various dependencies on dictionary order in the standard libraryArmin Rigo2006-05-285-9/+11
| | | | | | | | | tests, and one (clearly an oversight, potentially critical) in the standard library itself - base64.py. test_extcall is an output test which still needs to be fixed somehow. Forwardporting candidate...
* Merge rev 45944 from trunk.Tim Peters2006-05-101-0/+20
| | | | | | Variant of patch #1478292. doctest.register_optionflag(name) shouldn't create a new flag when `name` is already the name of an option flag.
* Backport SF bug/patch #1433877: string parameter to ioctl not null terminatedThomas Wouters2006-05-051-8/+1
| | | | | | The new char-array used in ioctl calls wasn't explicitly NUL-terminated; quite probably the cause for the test_pty failures on Solaris that we circumvented earlier.
* Patch #1464708 from William McVey: fixed handling of nested comments in mailBarry Warsaw2006-04-301-0/+10
| | | | | | | | | | addresses. E.g. "Foo ((Foo Bar)) <foo@example.com>" Fixes for both rfc822.py and email package. This patch needs to be back ported to Python 2.3 for email 2.5 and forward ported to Python 2.5 for email 4.0. (I'll do both soon)
* Backport r45774:Neal Norwitz2006-04-291-0/+1
| | | | | | | Try to really fix the slow buildbots this time. Printing to stdout, doesn't mean the data was actually written. It depends on the buffering, so we need to flush. This will hopefully really fix the buildbots getting killed due to no output on the slow bots.
* Bug #1478429: make datetime.datetime.fromtimestamp accept every float,Georg Brandl2006-04-281-0/+6
| | | | | possibly "rounding up" to the next whole second. (backport from rev. 45792)
* Merge rev 45631 from trunk.Tim Peters2006-04-212-1/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | SF bug #1473760 TempFile can hang on Windows. Python 2.4 changed ntpath.abspath to do an import inside the function. As a result, due to Python's import lock, anything calling abspath on Windows (directly, or indirectly like tempfile.TemporaryFile) hung when it was called from a thread spawned as a side effect of importing a module. This is a depressingly frequent problem, and deserves a more general fix. I'm settling for a micro-fix here because this specific one accounts for a report of Zope Corp's ZEO hanging on Windows, and it was an odd way to change abspath to begin with (ntpath needs a different implementation depending on whether we're actually running on Windows, and the _obvious_ way to arrange for that is not to bury a possibly-failing import _inside_ the function). Note that if/when other micro-fixes of this kind get made, the new Lib/test/threaded_import_hangers.py is a convenient place to add tests for them.