Skip to content

_chunker.c: fix some bugs#9576

Open
ThomasWaldmann wants to merge 1 commit intoborgbackup:1.4-maintfrom
ThomasWaldmann:chunker-fixes-1.4
Open

_chunker.c: fix some bugs#9576
ThomasWaldmann wants to merge 1 commit intoborgbackup:1.4-maintfrom
ThomasWaldmann:chunker-fixes-1.4

Conversation

@ThomasWaldmann
Copy link
Copy Markdown
Member

  • better check return value of fd.read(n) and reject if it returns more bytes than requested.
  • avoid giving len<=0 to posix_fadvise(), which could drop the rest of the file from cache.
  • chunker_fill: correctly Py_DECREF in case of an error in PyBytes_Size
  • buzhash: check for len == 0 edge case

- better check return value of fd.read(n) and reject if it returns more bytes than requested.
- avoid giving len<=0 to posix_fadvise(), which could drop the rest of the file from cache.
- chunker_fill: correctly Py_DECREF in case of an error in PyBytes_Size
- buzhash: check for len == 0 edge case
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.95%. Comparing base (7fd6df2) to head (3f5d382).
⚠️ Report is 1 commits behind head on 1.4-maint.

Additional details and impacted files
@@              Coverage Diff              @@
##           1.4-maint    #9576      +/-   ##
=============================================
- Coverage      81.97%   81.95%   -0.02%     
=============================================
  Files             38       38              
  Lines          11299    11299              
  Branches        1778     1778              
=============================================
- Hits            9262     9260       -2     
- Misses          1452     1453       +1     
- Partials         585      586       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant