Page MenuHomeFreeBSD

ext4_ext_tree_init: correct memset initialization
ClosedPublic

Authored by rlibby on Jun 23 2024, 3:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 20, 8:21 AM
Unknown Object (File)
Aug 28 2025, 6:33 AM
Unknown Object (File)
Jul 26 2025, 3:39 AM
Unknown Object (File)
Jul 22 2025, 4:37 AM
Unknown Object (File)
Jul 19 2025, 6:03 AM
Unknown Object (File)
Jul 11 2025, 10:59 AM
Unknown Object (File)
Jul 11 2025, 10:21 AM
Unknown Object (File)
Jun 18 2025, 10:23 PM
Subscribers

Details

Summary

gcc -Wmemset-elt-size diagnosed this. The code was only initializing
1/4 of the array. However, it was actually harmless, as the only caller
had done an M_ZERO allocation anyway.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable