Towards Efficient Heap Overflow Error