[Python-Dev] pymalloc killer (original) (raw)
Tim Peters tim.one@comcast.net
Fri, 29 Mar 2002 19:19:55 -0500
- Previous message: [Python-Dev] pymalloc killer
- Next message: [Python-Dev] pymalloc killer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[Tim]
It would be possible to store both the arena index and the arena base address in each pool header. Then we could check that
poolheader* p = pooladdress(somememoryaddress); if (p->arenaindex < narenas &&_ _arenas[p->arenaindex] == p->arenabase) { it's a pymalloc address } else { it isn't } I like that.
No I don't: I hate that. It can be tricked.
- Previous message: [Python-Dev] pymalloc killer
- Next message: [Python-Dev] pymalloc killer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]