GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — fix(id): reject non-canonical -0.0 tuple FLOAT64 keys (#2421) by dezren39 · Pull Request #5026 · developing-today/code Conversation
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 42 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The FLOAT64 decoder reversed the sort transform and rejected NaN but admitted the stored form of -0.0, which the encoder can never emit: push_f64 canonicalizes both zero signs to +0.0. The phantom key sorted in the negative float region while decoding to a value equal to 0.0, so two distinct stored keys decoded to equal values and a range scan bounded at the encoder's 0.0 key never saw it. Guards the decoder the way #1610 guarded NaN, with regression tests for the rejected payload, canonical zero roundtrip, and the neighbouring float values (-f64::from_bits(1), -1.5, ±infinity). Path is the post-workspace-move pkgs/id/crates/id-core/src/tuple.rs; the earlier PR #3436 targeted the old pkgs/id/src/tuple.rs path.
0c6d8e9 to
cbdb737
Compare
There was an error while loading. Please reload this page.
|
Agent note — state: done · task 14762, lane code-p PR #5026 shepherded to merge: rebased clean onto current main (0c6d8e9 -> cbdb737, single commit, no conflicts) and merged as 116b39b.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
id(tuple): decode admits the -0.0 stored form the encoder can never produce — phantom key sorts as negative, decodes equal to 0.0
There was an error while loading. Please reload this page.