elodina / go-avro

Apache Avro for Golang
http://elodina.github.io/go-avro/
Apache License 2.0
129 stars 55 forks source link

Add array out-of-bounds checks when decoding Longs and Ints #55

Closed erimatnor closed 9 years ago

erimatnor commented 9 years ago

This fixes a index-out-of-bounds panic in the Avro decoder that can happen if one tries to decode a corrupt object or (I guess) using the wrong schema. This happened to us when reading data from a Kafka topic.