Skip to content

More various fixes#135

Merged
folkertdev merged 4 commits into
mainfrom
more-various-fixes
May 11, 2026
Merged

More various fixes#135
folkertdev merged 4 commits into
mainfrom
more-various-fixes

Conversation

@folkertdev

Copy link
Copy Markdown
Member

No description provided.

@folkertdev
folkertdev requested a review from bjorn3 May 11, 2026 14:47
@codecov

codecov Bot commented May 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
libbz2-rs-sys/src/allocator.rs 0.00% 7 Missing ⚠️
Flag Coverage Δ
fuzz-compress_then_decompress 50.73% <ø> (+0.02%) ⬆️
fuzz-decompress_chunked 30.54% <ø> (-0.09%) ⬇️
test-aarch64-apple-darwin 89.49% <0.00%> (-0.09%) ⬇️
test-aarch64-unknown-linux-gnu 89.49% <0.00%> (-0.09%) ⬇️
test-i686-unknown-linux-gnu 89.49% <0.00%> (-0.09%) ⬇️
test-x86_64-apple-darwin 89.49% <0.00%> (-0.09%) ⬇️
test-x86_64-unknown-linux-gnu 89.64% <0.00%> (-0.09%) ⬇️

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

Files with missing lines Coverage Δ
libbz2-rs-sys/src/bzlib.rs 94.89% <ø> (+0.29%) ⬆️
libbz2-rs-sys/src/allocator.rs 54.54% <0.00%> (-4.61%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

return core::ptr::null_mut();
};

let Ok(len) = usize::try_from(len) else {

@bjorn3 bjorn3 May 11, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe convert to usize first to avoid unnecessary overflows? You did have to check for allocations >isize::MAX in that case though. LLVM considers those UB.

@folkertdev
folkertdev force-pushed the more-various-fixes branch 2 times, most recently from 72e76fa to abdc49f Compare May 11, 2026 15:39
@folkertdev
folkertdev force-pushed the more-various-fixes branch from abdc49f to 43d0a1a Compare May 11, 2026 15:52
@folkertdev
folkertdev merged commit d99560a into main May 11, 2026
24 of 25 checks passed
@folkertdev
folkertdev deleted the more-various-fixes branch May 11, 2026 16:54
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.

2 participants