fix: reject NULL elements in decode_sample (#143) - #151
Merged
Conversation
Owner
Author
codex review (standing in for REV)REV is not installed on this host. I ran FindingsNo actionable findings. The added NULL checks reject malformed packed-array elements before decoding, and the regression verifies all three affected positions and warning paths. No breaking or blocking issue was found. Audit §5a verdict
RED/GREEN evidence
This is a |
NikolayS
marked this pull request as ready for review
July 27, 2026 15:44
NikolayS
force-pushed
the
release/fix-decode-null-elements-143
branch
from
July 27, 2026 15:44
08b735b to
17ccccb
Compare
This was referenced Jul 27, 2026
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.
Closes #143
Summary
_sample_data_is_valid()storage CHECKTDD evidence
Before the fix:
array[NULL,1,0]emitted a fabricated blank rowarray[-1,NULL,0]raisedupper bound of FOR loop cannot be nullarray[-1,1,NULL]emitted a fabricated blank rowThe new gate checks exact zero-row counts and exactly one warning per input. After the fix the warnings are:
expected negative wait_id at position 1non-positive count <NULL> at position 2expected non-negative query_id at position 3Validation
Postgres 18:
git diff --checkpassesThe hosted PG14–PG19 beta/no-cron matrix is left to this draft PR.