1. 22 Ara, 2008 1 kayıt (commit)
  2. 29 Agu, 2008 1 kayıt (commit)
  3. 24 Agu, 2008 1 kayıt (commit)
    • Neal Norwitz's avatar
      Fix: · 18aa388c
      Neal Norwitz yazdı
       * crashes on memory allocation failure found with failmalloc
       * memory leaks found with valgrind
       * compiler warnings in opt mode which would lead to invalid memory reads
       * problem using wrong name in decimal module reported by pychecker
      
      Update the valgrind suppressions file with new leaks that are small/one-time
      leaks we don't care about (ie, they are too hard to fix).
      
      TBR=barry
      TESTED=./python -E -tt ./Lib/test/regrtest.py -uall (both debug and opt modes)
        in opt mode:
        valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \
          ./python -E -tt ./Lib/test/regrtest.py -uall,-bsddb,-compiler \
                              -x test_logging test_ssl test_multiprocessing
        valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \
          ./python -E -tt ./Lib/test/regrtest.py test_multiprocessing
        for i in `seq 1 4000` ; do
          LD_PRELOAD=~/local/lib/libfailmalloc.so FAILMALLOC_INTERVAL=$i \
              ./python -c pass
        done
      
      At least some of these fixes should probably be backported to 2.5.
      18aa388c
  4. 12 Agu, 2008 1 kayıt (commit)
  5. 09 Haz, 2008 1 kayıt (commit)
  6. 26 May, 2008 1 kayıt (commit)
  7. 26 Şub, 2008 2 kayıt (commit)
  8. 30 Kas, 2007 1 kayıt (commit)
  9. 04 Eki, 2006 1 kayıt (commit)
    • Armin Rigo's avatar
      Forward-port of r52136,52138: a review of overflow-detecting code. · 7ccbca93
      Armin Rigo yazdı
      * 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.
      
      * 2.5 specific: fixed a number of places that were still confusing int
        and Py_ssize_t.  Some of them could potentially have caused
        "real-world" breakage.
      
      * list.pop(x): fixing overflow issues on x was messy.  I just reverted
        to PyArg_ParseTuple("n"), which does the right thing.  (An obscure
        test was trying to give a Decimal to list.pop()... doesn't make
        sense any more IMHO)
      
      * trying to write a few tests...
      7ccbca93
  10. 21 Eyl, 2006 1 kayıt (commit)
  11. 09 Agu, 2006 1 kayıt (commit)
  12. 26 Tem, 2006 1 kayıt (commit)
  13. 08 Haz, 2006 2 kayıt (commit)
  14. 18 Nis, 2006 1 kayıt (commit)
  15. 14 Nis, 2006 2 kayıt (commit)
  16. 13 Nis, 2006 1 kayıt (commit)
  17. 12 Nis, 2006 1 kayıt (commit)
  18. 01 Mar, 2006 3 kayıt (commit)
  19. 27 Şub, 2006 1 kayıt (commit)
  20. 20 Şub, 2006 1 kayıt (commit)
  21. 19 Şub, 2006 1 kayıt (commit)
  22. 16 Şub, 2006 1 kayıt (commit)
  23. 15 Şub, 2006 1 kayıt (commit)
  24. 20 Ock, 2006 1 kayıt (commit)
  25. 19 Ara, 2005 2 kayıt (commit)
  26. 10 Ara, 2005 1 kayıt (commit)
    • Jeremy Hylton's avatar
      Add const to several API functions that take char *. · af68c874
      Jeremy Hylton yazdı
      In C++, it's an error to pass a string literal to a char* function
      without a const_cast().  Rather than require every C++ extension
      module to put a cast around string literals, fix the API to state the
      const-ness.
      
      I focused on parts of the API where people usually pass literals:
      PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type
      slots, etc.  Predictably, there were a large set of functions that
      needed to be fixed as a result of these changes.  The most pervasive
      change was to make the keyword args list passed to
      PyArg_ParseTupleAndKewords() to be a const char *kwlist[].
      
      One cast was required as a result of the changes:  A type object
      mallocs the memory for its tp_doc slot and later frees it.
      PyTypeObject says that tp_doc is const char *; but if the type was
      created by type_new(), we know it is safe to cast to char *.
      af68c874
  27. 14 Eyl, 2005 1 kayıt (commit)
  28. 26 Agu, 2005 1 kayıt (commit)
  29. 30 Mar, 2005 1 kayıt (commit)
  30. 03 Mar, 2005 2 kayıt (commit)
  31. 07 Agu, 2004 1 kayıt (commit)
    • Michael W. Hudson's avatar
      Fix · 34553388
      Michael W. Hudson yazdı
      [ 991812 ] PyArg_ParseTuple can miss errors with warnings as exceptions
      
      as suggested in the report.
      
      This is definitely a 2.3 candidate (as are most of the checkins I've
      made in the last month...)
      34553388
  32. 10 Tem, 2004 1 kayıt (commit)
  33. 03 May, 2003 1 kayıt (commit)