catch bufferoverflow exception