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 enable gocritic, unconvert and unused linters 2023-04-13 19:20:22 +00:00
bstream_test.go
chunk.go Add support for native histograms to concreteSeriesIterator 2023-04-06 09:54:15 -07:00
chunk_test.go tsdb: Rework iterators (#9877) 2021-11-29 13:24:23 +05:30
float_histogram.go Fix HistogramAppender.Appendable array out of bound error 2023-05-14 17:38:52 +02:00
float_histogram_test.go Fix HistogramAppender.Appendable array out of bound error 2023-05-14 17:38:52 +02:00
histogram.go Fix HistogramAppender.Appendable array out of bound error 2023-05-14 17:38:52 +02:00
histogram_meta.go Fix HistogramAppender.Appendable array out of bound error 2023-05-14 17:38:52 +02:00
histogram_meta_test.go histograms: General readability tweaks 2023-01-19 13:26:42 +01:00
histogram_test.go Fix HistogramAppender.Appendable array out of bound error 2023-05-14 17:38:52 +02:00
varbit.go enable gocritic, unconvert and unused linters 2023-04-13 19:20:22 +00:00
varbit_test.go
xor.go Merge branch 'main' into linter/nilerr 2023-04-19 19:56:39 +02:00
xor_test.go chunkenc: Slightly optimize xorWrite/xoRead (#11476) 2022-10-20 15:08:01 +05:30