Repository navigation
Conversation
- a list or set image marked empty must have a zero count - each coupon must have a value and appear once; in an updatable set each coupon must be where a lookup finds it - in an HLL_4 image each register that refers to the aux map must have one aux entry, with a value that does not fit in the register, and there must be no other entries; in an updatable image each entry must be where a lookup finds it The checks run in checkPreamble, so every way of reading an image applies them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Combined into #827 with the other sketches' checks of the same kind; the commits are unchanged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
HllUtil.checkPreamblenow checks more of an image when it comes from outside the sketch. heapify, wrap and writableWrap all go through it, so all three apply the checks.Before this change these images were read without an error, but then:
SketchesStateExceptionorIndexOutOfBoundsException.The checks only read the image. They scan at most the coupon table, or the K/2 register bytes and the aux table. That is similar to the HLL_8 register scan added in #814.
Testing
HllCorruptImageTest, one per case, covering compact and updatable images. Each checks heapify, wrap,HllUnion.heapifyand, for updatable images, writableWrap. All 11 fail without the change.check_CL_binary_fileshas the same 4 failures as main.🤖 Generated with Claude Code