Skip to content

std lib test suite: fix some illegal behavior found by valgrind #24906

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

CorruptedVor
Copy link

@CorruptedVor CorruptedVor commented Aug 19, 2025

follow-up on #24833 - without a fix for Build.zig

I can also split this pr up into several prs, if that makes it easier

@@ -3338,6 +3343,7 @@ test "remove_buffers" {
const buffer_len = 128;

var buffers: [4][buffer_len]u8 = undefined;
std.valgrind.memcheck.makeMemDefinedIfAddressable(std.mem.sliceAsBytes(&buffers));
Copy link
Author

@CorruptedVor CorruptedVor Aug 19, 2025

Choose a reason for hiding this comment

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

Should I move this to around 3392, after ring.copy_cqe()? that is when it should be defined, not right here

(if that was not the case the check for a zero-initialized later would fail)

@CorruptedVor CorruptedVor requested a review from andrewrk August 19, 2025 17:27
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.

3 participants