Detect if buffer is too short to contain a valid message