1. 11 Oct, 2002 2 commits
    • Martin v. Löwis's avatar
      Back out #479898. · a5f0907d
      Martin v. Löwis authored
      a5f0907d
    • Guido van Rossum's avatar
      Fix a nasty endcase reported by Armin Rigo in SF bug 618623: · 049cd6b5
      Guido van Rossum authored
      '%2147483647d' % -123 segfaults.  This was because an integer overflow
      in a comparison caused the string resize to be skipped.  After fixing
      the overflow, this could call _PyString_Resize() with a negative size,
      so I (1) test for that and raise MemoryError instead; (2) also added a
      test for negative newsize to _PyString_Resize(), raising SystemError
      as for all bad arguments.
      
      An identical bug existed in unicodeobject.c, of course.
      
      Will backport to 2.2.2.
      049cd6b5
  2. 10 Oct, 2002 19 commits
  3. 09 Oct, 2002 13 commits
  4. 08 Oct, 2002 2 commits
    • Tim Peters's avatar
      The · cfac1d4a
      Tim Peters authored
              list(xrange(sys.maxint / 4))
      test.  Changed 4 to 2.
      
      The belief is that this test intended to trigger a bit of code in
      listobject.c's NRESIZE macro that's looking for arithmetic overflow.  As
      written, it doesn't achieve that, though, and leaves it up to the platform
      realloc() as to whether it wants to allocate 2 gigabytes.  Some platforms
      say "sure!", although they don't appear to mean it, and disaster ensues.
      
      Changing 4 to 2 (just barely) manages to trigger the arithmetic overflow
      test instead, leaving the platform realloc() out of it.
      
      I'll backport this to the 2.2 branch next.
      cfac1d4a
    • Mark Hammond's avatar
      Add os.path.supports_unicode_filenames for all platforms, · 8696ebcd
      Mark Hammond authored
      sys.getwindowsversion() on Windows (new enahanced Tim-proof <wink>
      version), and fix test_pep277.py in a few minor ways.
      Including doc and NEWS entries.
      8696ebcd
  5. 07 Oct, 2002 4 commits