1. 24 Nov, 2017 1 commit
    • Victor Stinner's avatar
      bpo-31626: Fix _PyObject_DebugReallocApi() (#4310) · ed4743a2
      Victor Stinner authored
      _PyObject_DebugReallocApi() now calls Py_FatalError() if realloc()
      fails to shrink a memory block.
      
      Call Py_FatalError() because _PyObject_DebugReallocApi() erased freed
      bytes *before* realloc(), expecting that realloc() *cannot* fail to
      shrink a memory block.
      ed4743a2
  2. 23 Nov, 2017 3 commits
  3. 20 Nov, 2017 1 commit
  4. 19 Nov, 2017 1 commit
  5. 17 Nov, 2017 2 commits
  6. 14 Nov, 2017 1 commit
  7. 11 Nov, 2017 1 commit
    • Gregory P. Smith's avatar
      [2.7] bpo-21149: Workaround a GC finalization bug in logging. (#4368) · e84f6d38
      Gregory P. Smith authored
      * Work around a GC process finalization bug.
      
      The logging RLock instances may exist but the threading.RLock class
      itself has already been emptied causing a
      Exception TypeError: "'NoneType' object is not callable" in <function _removeHandlerRef ..."
      to be printed to stderr on process termination.
      
      This catches that exception and ignores it because there is absolutely
      nothing we can or should do about it from the context of a weakref
      handler called from the gc context.
      e84f6d38
  8. 10 Nov, 2017 1 commit
  9. 09 Nov, 2017 2 commits
  10. 08 Nov, 2017 4 commits
  11. 07 Nov, 2017 5 commits
  12. 04 Nov, 2017 3 commits
  13. 03 Nov, 2017 2 commits
  14. 01 Nov, 2017 5 commits
  15. 31 Oct, 2017 5 commits
  16. 29 Oct, 2017 1 commit
  17. 25 Oct, 2017 2 commits
    • Serhiy Storchaka's avatar
    • Benjamin Peterson's avatar
      fix marshal uninitialized variable warnings (#4114) · 88d5e2c9
      Benjamin Peterson authored
      GCC says:
      ../cpython/Python/marshal.c: In function ‘PyMarshal_WriteLongToFile’:
      ../cpython/Python/marshal.c:70:35: warning: ‘wf.ptr’ may be used uninitialized in this function [-Wmaybe-uninitialized]
                             else if ((p)->ptr != (p)->end) *(p)->ptr++ = (c); \
                                         ^~
      ../cpython/Python/marshal.c:70:47: warning: ‘wf.end’ may be used uninitialized in this function [-Wmaybe-uninitialized]
                             else if ((p)->ptr != (p)->end) *(p)->ptr++ = (c); \
                                                     ^~
      ../cpython/Python/marshal.c:77:10: warning: ‘wf.str’ may be used uninitialized in this function [-Wmaybe-uninitialized]
           if (p->str == NULL)
               ~^~~~~
      
      This isn't a real problem because if the file pointer is not NULL, the
      string-related fields are never touched. But, it doesn't hurt to set the unused
      fields to NULL.
      88d5e2c9