Panic in invalid cases of decoder.Read.