Merge pull request #3693 from influxdb/jw-hh
Prevent out of memory range slices from being createdpull/3697/head
commit
6bdfa47065
services/hh
|
@ -55,6 +55,7 @@ There are breaking changes in this release. Please see the *Features* section be
|
|||
- [#3672](https://github.com/influxdb/influxdb/pull/3672): Reduce in-memory index by 20%-30%
|
||||
- [#3673](https://github.com/influxdb/influxdb/pull/3673): Improve query performance by removing unnecessary tagset sorting.
|
||||
- [#3676](https://github.com/influxdb/influxdb/pull/3676): Improve query performance by memomizing mapper output keys.
|
||||
- [#3687](https://github.com/influxdb/influxdb/issues/3687): Fix panic: runtime error: makeslice: len out of range in hinted handoff
|
||||
|
||||
## v0.9.2 [2015-07-24]
|
||||
|
||||
|
|
|
@ -496,6 +496,10 @@ func (l *segment) current() ([]byte, error) {
|
|||
}
|
||||
l.currentSize = int64(sz)
|
||||
|
||||
if int64(sz) > l.maxSize {
|
||||
return nil, fmt.Errorf("record size out of range: max %d: got %d", l.maxSize, sz)
|
||||
}
|
||||
|
||||
b := make([]byte, sz)
|
||||
if err := l.readBytes(b); err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in New Issue