• Tim Peters's avatar
    SF bug 1185883: PyObject_Realloc can't safely take over a block currently · ecc6e6a5
    Tim Peters yazdı
    managed by C, because it's possible for the block to be smaller than the
    new requested size, and at the end of allocated VM.  Trying to copy over
    nbytes bytes to a Python small-object block can segfault then, and there's
    no portable way to avoid this (we would have to know how many bytes
    starting at p are addressable, and std C has no means to determine that).
    
    Bugfix candidate.  Should be backported to 2.4, but I'm out of time.
    ecc6e6a5
obmalloc.c 44.5 KB