Some heuristic checks when passing bad CRC.
Fixed wrong buffer size that lead to crashes.