[PATCH] fix buffer overflow in report result parsing