bugfix to pool.h, avoid buffer overflow when size < 8