prometheus/tsdb/chunkenc
György Krajcsovits c6618729c9 Fix HistogramAppender.Appendable array out of bound error
The code did not handle spans with 0 length properly.

Spans with length zero are now skipped in the comparison.
Span index check not done against length-1, since length is a unit32,
thus subtracting 1 leads to 2^32, not -1.

Fixes and unit tests for both integer and float histograms added.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2023-05-14 17:38:52 +02:00
..
bstream.go
bstream_test.go
chunk.go
chunk_test.go
float_histogram.go
float_histogram_test.go
histogram.go
histogram_meta.go
histogram_meta_test.go
histogram_test.go
varbit.go
varbit_test.go
xor.go
xor_test.go