• Home
  • Raw
  • Download

Lines Matching refs:InvalidProtocolBufferException

119 …  private static void AssertReadVarintFailure(InvalidProtocolBufferException expected, byte[] data)  in AssertReadVarintFailure()
122 … var exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint32()); in AssertReadVarintFailure()
126 … exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint64()); in AssertReadVarintFailure()
136 catch (InvalidProtocolBufferException ex) in AssertReadVarintFailure()
149 catch (InvalidProtocolBufferException ex) in AssertReadVarintFailure()
156 …exception = Assert.Throws<InvalidProtocolBufferException>(() => CodedInputStream.ReadRawVarint32(n… in AssertReadVarintFailure()
202 InvalidProtocolBufferException.MalformedVarint(), in ReadVarint()
206 InvalidProtocolBufferException.TruncatedMessage(), in ReadVarint()
383 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadBytes()); in ReadMaliciouslyLargeBlob()
403 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadBytes()); in ReadBlobGreaterThanCurrentLimit()
414 catch (InvalidProtocolBufferException) {} in ReadBlobGreaterThanCurrentLimit()
435 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadString()); in ReadStringGreaterThanCurrentLimit()
446 catch (InvalidProtocolBufferException) { } in ReadStringGreaterThanCurrentLimit()
461 Assert.Throws<InvalidProtocolBufferException>(() => cis.ReadTag()); in ReadTag_ZeroFieldRejected()
498 …Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(beyondRe… in MaliciousRecursion()
501 … Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(input)); in MaliciousRecursion()
529 …Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(payloadB… in MaliciousRecursion_UnknownFields()
547 …Assert.Throws<InvalidProtocolBufferException>(() => Proto2.TestAllTypes.Parser.ParseFrom(payload)); in ReadGroup_WrongEndGroupTag()
561 …Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(payload)… in ReadGroup_UnknownFields_WrongEndGroupTag()
571 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseFrom(input)); in SizeLimit()
614 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadString()); in ReadNegativeSizedStringThrowsInvalidProtocolBufferException()
632 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadBytes()); in ReadNegativeSizedBytesThrowsInvalidProtocolBufferException()
695 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadTag()); in Tag0Throws()
771 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField); in SkipGroup_WrongEndGroupTag()
788 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField); in RogueEndGroupTag()
806 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField); in EndOfStreamReachedWhileSkippingGroup()
828 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField); in RecursionLimitAppliedWhileSkippingGroup()
904 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseFrom(stream), in TestParseMessagesOver2G()