Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/ufs/ufs



Le 27/02/2020 à 01:36, Simon Burge a écrit :
> "Maxime Villard" wrote:
> 
>> Module Name:	src
>> Committed By:	maxv
>> Date:		Wed Feb 26 18:00:12 UTC 2020
>>
>> Modified Files:
>>
>> 	src/sys/ufs/ufs: ufs_vnops.c
>>
>> Log Message:
>>
>> Zero out the padding in 'd_namlen', to prevent info leaks. Same logic as
>> ufs_makedirentry().
> 
> Is it cleaner to just call pool_cache_get() with PR_ZERO?
> 
> Cheers,
> Simon.

In this specific case there is already a clean macro that gives the number of
padding bytes, so using it is cleaner/faster than zeroing the whole buffer.

Maxime


Home | Main Index | Thread Index | Old Index