Submit #846762: HdrHistogram (Open Source) HdrHistogram 2.2.2 and earlier Improper Input Validationinfo

TitleHdrHistogram (Open Source) HdrHistogram 2.2.2 and earlier Improper Input Validation
DescriptionThe `DoubleHistogram.recordValue(double value)` method fails to validate against IEEE 754 special values. When `NaN` (Not-a-Number) is passed as the value, it bypasses the range check because `NaN` returns `false` for all comparison operators per the IEEE 754 specification. The NaN is then cast to `long` which produces `0L`, silently recording a phantom count at bucket 0 and corrupting all subsequent percentile and mean calculations.
Source⚠️ https://github.com/HdrHistogram/HdrHistogram/issues/222
User
 sara11h (UID 98571)
Submission06/03/2026 09:56 (1 month ago)
Moderation07/04/2026 06:40 (1 month later)
StatusAccepted
VulDB entry376282 [HdrHistogram up to 2.2.2 Range Check DoubleHistogram.java org.HdrHistogram.DoubleHistogram.recordValue comparison]
Points19

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!