Skip to content

Auke/dirent zero pad#290

Open
aversecat wants to merge 2 commits intomainfrom
auke/dirent_zero_pad
Open

Auke/dirent zero pad#290
aversecat wants to merge 2 commits intomainfrom
auke/dirent_zero_pad

Conversation

@aversecat
Copy link
Contributor

two leaks on allocation to disk...

This allocation here currently leaks through __pad[7] which
is written to disk. Use the initializer to enforce zeroing
the pad. The name member is written right after.

Signed-off-by: Auke Kok <auke.kok@versity.com>
The initialization here avoids clearing __pad[], which leaks
to disk. Use a struct initializer to avoid it.

Signed-off-by: Auke Kok <auke.kok@versity.com>
@aversecat aversecat force-pushed the auke/dirent_zero_pad branch from 3fa3e24 to 137abc1 Compare March 6, 2026 00:23
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