Avro deserialiser can cause stack overflow exception when deserialising crafted message.
How to reproduce?
public class TestMessage
{
public string Body { get; set; }
}
var msg = new TestMessage { Body = "OK" };
var data = AvroConvert.Serialize(msg);
data[5] = 0x67;
var msg2 = AvroConvert.Deserialize<TestMessage>(data); // crashes here
What is the Avro data? Fill up the section or provide a sample file
What is the bug?
Avro deserialiser can cause stack overflow exception when deserialising crafted message.
How to reproduce?
What is the Avro data? Fill up the section or provide a sample file
What is the expected behavior?
throw exception that is easy to catch, not StackOverflow exception.
What could be the reason of the bug?