We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f088cb commit f7279a6Copy full SHA for f7279a6
feature_iter_int.go
@@ -114,7 +114,7 @@ func (iter *Iterator) ReadUint32() (ret uint32) {
114
115
func (iter *Iterator) readUint32(c byte) (ret uint32) {
116
defer func() {
117
- if iter.buf[iter.head] == '.' {
+ if iter.head < len(iter.buf) && iter.buf[iter.head] == '.' {
118
iter.ReportError("readUint32", "can not decode float as int")
119
}
120
}()
@@ -230,7 +230,7 @@ func (iter *Iterator) ReadUint64() uint64 {
230
231
func (iter *Iterator) readUint64(c byte) (ret uint64) {
232
233
234
iter.ReportError("readUint64", "can not decode float as int")
235
236
0 commit comments