Fix crash on receiving buffer overflow.