[issue23503] undefined behavior in Objects/obmalloc.c

STINNER Victor report at bugs.python.org
Mon Sep 19 04:36:10 EDT 2016


STINNER Victor added the comment:

It seems that line numbers are for Python 3.5:

#define PTA(x)  ((poolp )((uchar *)&(usedpools[2*(x)]) - 2*sizeof(block *)))
#define PT(x)   PTA(x), PTA(x)

static poolp usedpools[2 * ((NB_SMALL_SIZE_CLASSES + 7) / 8) * 8] = {
    PT(0), PT(1), PT(2), PT(3), PT(4), PT(5), PT(6), PT(7) <==== HERE

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23503>
_______________________________________


More information about the Python-bugs-list mailing list