valkey icon indicating copy to clipboard operation
valkey copied to clipboard

replace strcmp with byte-by-byte comparison in aof

Open MuradSh opened this issue 1 month ago • 2 comments

Issue #2792

Replace strcmp with byte-by-byte comparison to avoid accidental heap-buffer-overflow errors.

MuradSh avatar Nov 05 '25 23:11 MuradSh

Do you mean https://github.com/valkey-io/valkey/issues/2792 in the PR description?

sarthakaggarwal97 avatar Nov 06 '25 05:11 sarthakaggarwal97

Oops, yeah. I updated the description.

MuradSh avatar Nov 06 '25 06:11 MuradSh

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 72.43%. Comparing base (32844b8) to head (7c456b5). :warning: Report is 47 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #2809      +/-   ##
============================================
+ Coverage     72.41%   72.43%   +0.02%     
============================================
  Files           128      128              
  Lines         70261    70261              
============================================
+ Hits          50879    50897      +18     
+ Misses        19382    19364      -18     
Files with missing lines Coverage Δ
src/valkey-check-aof.c 73.80% <100.00%> (ø)

... and 9 files with indirect coverage changes

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov[bot] avatar Dec 01 '25 12:12 codecov[bot]

Do we need to backport this fix? To which versions?

zuiderkwast avatar Dec 03 '25 16:12 zuiderkwast