1. 09 May, 2007 1 kayıt (commit)
    • Walter Dörwald's avatar
      Backport checkin: · 0ac60611
      Walter Dörwald yazdı
      Fix a segfault when b"" was passed to b2a_qp() -- it was using strchr()
      instead of memchr().
      0ac60611
  2. 22 Nis, 2007 1 kayıt (commit)
  3. 21 Nis, 2007 1 kayıt (commit)
  4. 16 Kas, 2006 1 kayıt (commit)
  5. 08 Haz, 2006 1 kayıt (commit)
  6. 29 May, 2006 1 kayıt (commit)
  7. 01 Mar, 2006 3 kayıt (commit)
  8. 27 Şub, 2006 1 kayıt (commit)
  9. 19 Ock, 2006 1 kayıt (commit)
  10. 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
  11. 06 Eyl, 2004 2 kayıt (commit)
  12. 27 Tem, 2004 1 kayıt (commit)
  13. 06 Haz, 2004 1 kayıt (commit)
  14. 11 May, 2004 1 kayıt (commit)
  15. 17 Mar, 2003 1 kayıt (commit)
  16. 15 Agu, 2002 1 kayıt (commit)
  17. 02 Agu, 2002 1 kayıt (commit)
  18. 02 Tem, 2002 2 kayıt (commit)
    • Tim Peters's avatar
      Another stab at SF 576327: zipfile when sizeof(long) == 8 · 934c1a1c
      Tim Peters yazdı
      binascii_crc32():  The previous patch forced this to return the same
      result across platforms.  This patch deals with that, on a 64-bit box,
      the *entry* value may have "unexpected" bits in the high four bytes.
      
      Bugfix candidate.
      934c1a1c
    • Tim Peters's avatar
      Fix for SF bug #576327: zipfile when sizeof(long) == 8 · a98011c3
      Tim Peters yazdı
      binascii_crc32():  Make this return a signed 4-byte result across
      platforms.  The other way to make this platform-independent would be to
      make it return an unsigned unbounded int, but the evidence suggests
      other code out there treats it like a signed 4-byte int (e.g., existing
      code writing the result with struct.pack "l" format).
      
      Bugfix candidate.
      a98011c3
  19. 13 Haz, 2002 1 kayıt (commit)
  20. 19 Ara, 2001 1 kayıt (commit)
    • Tim Peters's avatar
      SF bug #494738: binascii_b2a_base64 overwrites memory. · 1fbb577e
      Tim Peters yazdı
      binascii_b2a_base64():  We didn't allocate enough buffer space for very
      short inputs (e.g., a 1-byte input can produce a 5-byte output, but we
      only allocated 2 bytes).  I expect that malloc overheads absorbed the
      overrun in practice, but computing a correct upper bound is a very simple
      change.
      1fbb577e
  21. 30 Eki, 2001 1 kayıt (commit)
  22. 04 Eki, 2001 1 kayıt (commit)
  23. 30 Eyl, 2001 1 kayıt (commit)
  24. 07 Haz, 2001 1 kayıt (commit)
  25. 09 Ock, 2001 1 kayıt (commit)
  26. 01 Eyl, 2000 1 kayıt (commit)
  27. 15 Agu, 2000 3 kayıt (commit)
  28. 03 Agu, 2000 1 kayıt (commit)
  29. 21 Tem, 2000 1 kayıt (commit)
    • Thomas Wouters's avatar
      Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)', · f3f33dcf
      Thomas Wouters yazdı
      and a couple of functions that were missed in the previous batches. Not
      terribly tested, but very carefully scrutinized, three times.
      
      All these were found by the little findkrc.py that I posted to python-dev,
      which means there might be more lurking. Cases such as this:
      
      long
      func(a, b)
      	long a;
      	long b; /* flagword */
      {
      
      and other cases where the last ; in the argument list isn't followed by a
      newline and an opening curly bracket. Regexps to catch all are welcome, of
      course ;)
      f3f33dcf
  30. 10 Tem, 2000 1 kayıt (commit)
  31. 30 Haz, 2000 1 kayıt (commit)
  32. 29 Şub, 2000 1 kayıt (commit)
  33. 16 Şub, 2000 1 kayıt (commit)
    • Guido van Rossum's avatar
      Patch by Jim Ahlstrom to add crc32, a useful checksum function · 7d47c9e3
      Guido van Rossum yazdı
      (e.g. used for ZIP files).
      
      The patch includes code that says:
      +  Copyright (C) 1986 Gary S. Brown.  You may use this program, or
      +  code or tables extracted from it, as desired without restriction.
      
      My interpretation (and Jim's) is that Gary S Brown has no claims under
      copyright, patent or other rights or interests.  Lawyers might disagree.
      7d47c9e3
  34. 19 Eki, 1999 1 kayıt (commit)
    • Guido van Rossum's avatar
      Patch by Jason Trowbridge. (Followup to his PR#110.) (Slightly · 2db4f47f
      Guido van Rossum yazdı
      reformatted.)
      
      - Illegal padding is now ignored.  (Recommendation by GvR.)
      
      - Padding no longer removes characters from data string (resulting in
      lost data/strings with negative lengths).
      
      - Illegal characters outside the ASCII range are now ignored, instead
      of possibly being remapped to a valid character.
      2db4f47f