Enforce 16-char hex digest length and case-insensitive comparison for IFDEQ/IFDNE by sundb · Pull Request #14502 · redis/redis
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 24.6k
Merged
Enforce 16-char hex digest length and case-insensitive comparison for IFDEQ/IFDNE#14502
sundb merged 4 commits intoredis:unstablefrom
Enforce 16-char hex digest length and case-insensitive comparison for IFDEQ/IFDNE#14502
sundb merged 4 commits intoredis:unstablefrom
Conversation
Copy link Copy Markdown
Collaborator
Fix #14496
This PR makes the following changes:
-
DIGEST: Always return 16 hex characters with leading zeros
Example: "00006c38adf31777" instead of "6c38adf31777" -
IFDEQ/IFDNE: Validate the digest must be exactly 16 characters
-
IFDEQ/IFDNE: Use strcasecmp for case-insensitive hex comparison
Both uppercase and lowercase hex digits now work identically
sundb and others added 3 commits
November 3, 2025 11:10Co-authored-by: Marc Gravell <marc.gravell@gmail.com>
sundb
requested a review
from minchopaskal
sundb
mentioned this pull request
ShooterIT approved these changes Nov 3, 2025
src/db.c
Outdated
Show resolved
Hide resolved
…acters` Co-authored-by: Yuan Wang <yuan.wang@redis.com>
Copy link Copy Markdown
Collaborator
minchopaskal
commented
Nov 3, 2025
minchopaskal commented
Nov 3, 2025LGTM
minchopaskal approved these changes Nov 3, 2025
Copy link Copy Markdown
Contributor
mgravell
commented
Nov 3, 2025
mgravell commented
Nov 3, 2025I have validated against the PR branch (ironically at the same time it was being merged into unstable); seems good
mgravell
mentioned this pull request
sundb
deleted the
fix-cas
branch
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