notfilippo opened a new pull request, #399: URL: https://github.com/apache/datasketches-rust/pull/399
Dense HLL8 stores each register in a byte, but valid ranks are `0..=63`. Today, `HllSketch::deserialize` accepts a register value of `64`. A later union can then try to rebuild its estimate from a rank the estimator cannot handle. This change returns `InvalidData` at deserialization instead. It checks the ranks before copying the registers. Valid sketches keep the same wire format and produce the same estimates. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
