Fix buffer overrun of fixed_size_heap when max_size_==0: fix #573

This change fixes #573.