Skip to content

fix textwrap allocation-failure crashes - #317

Merged
jquast merged 2 commits into
masterfrom
fix/textwrap-oom-cleanups
Nov 9, 2026
Merged

jquast merged 2 commits into
masterfrom
fix/textwrap-oom-cleanups

Conversation

@jquast

@jquast jquast commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Fix double-free in lines_push, and "dangling" *out in _wrap_to_buffer() with tests and a CMake target with test fixtures for malloc()-family functions that can be induced to artificially fail

@codspeed

codspeed Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 142 untouched benchmarks


Comparing fix/textwrap-oom-cleanups (82a6f2a) with master (cd6b5fb)

Open in CodSpeed

@jquast
jquast force-pushed the fix/textwrap-oom-cleanups branch from 0b46e13 to 1f3b3a8 Compare November 9, 2026 21:09
@codecov

codecov Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.74%. Comparing base (cd6b5fb) to head (82a6f2a).

Files with missing lines Patch % Lines
libwcwidth/src/textwrap.c 60.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #317      +/-   ##
==========================================
+ Coverage   88.46%   88.74%   +0.28%     
==========================================
  Files          41       41              
  Lines        5668     5669       +1     
  Branches     1522     1522              
==========================================
+ Hits         5014     5031      +17     
+ Misses        299      254      -45     
- Partials      355      384      +29     

☔ 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.

@jquast
jquast force-pushed the fix/textwrap-oom-cleanups branch from da91a23 to 1f3b3a8 Compare November 9, 2026 21:20
@jquast
jquast merged commit 0ca81c5 into master Nov 9, 2026
37 of 38 checks passed
@jquast
jquast deleted the fix/textwrap-oom-cleanups branch November 9, 2026 21:36
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