Skip to content

Bound write() return in ela_write_all to satisfy Coverity INTEGER_OVE… - #104

Merged
nstarke merged 1 commit into
mainfrom
bugfixes-coverity-write-all
Sep 18, 2026
Merged

nstarke merged 1 commit into
mainfrom
bugfixes-coverity-write-all

Conversation

@nstarke

@nstarke nstarke commented Sep 18, 2026

Copy link
Copy Markdown
Owner

…RFLOW

Coverity CID 1701600 flags len - offset as a possible underflow because offset is advanced by the return value of write(), which it treats as untrusted. write(2) never returns more than requested, but reject a larger value explicitly so offset can never exceed len.

…RFLOW

Coverity CID 1701600 flags len - offset as a possible underflow because
offset is advanced by the return value of write(), which it treats as
untrusted. write(2) never returns more than requested, but reject a
larger value explicitly so offset can never exceed len.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.39%. Comparing base (6beec4c) to head (21417bb).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #104   +/-   ##
=======================================
  Coverage   80.39%   80.39%           
=======================================
  Files         221      221           
  Lines       16842    16842           
  Branches     2497     2497           
=======================================
  Hits        13540    13540           
  Misses       3302     3302           
Flag Coverage Δ
agent 88.29% <ø> (ø)
agent-c 78.16% <100.00%> (ø)
gdb 90.29% <ø> (ø)
terminal 86.37% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

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

@nstarke
nstarke merged commit 08f24c3 into main Sep 18, 2026
86 checks passed
@nstarke
nstarke deleted the bugfixes-coverity-write-all branch September 18, 2026 21:32
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