spaolacci / murmur3

Native MurmurHash3 Go implementation
BSD 3-Clause "New" or "Revised" License
947 stars 127 forks source link

Fix index-out-of-range on empty string #1

Closed dgryski closed 11 years ago

dgryski commented 11 years ago

Access to data[0] is not valid if len(data) == 0

This fails for me on go1.1beta . (Didn't test on go1.0)

spaolacci commented 11 years ago

Thanks!