Source-Changes-D archive

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

Re: CVS commit: src/sys/kern



> >> -wrong initialization reported in a followup to PR bin/43336
> >> (looks harmless because it applies to zero-initialized memory, so
> >> LIST_INIT() is a no-op)
> > 
> > Does malloc(3) return zero-initialized memory?
> 
> Not unless you asked for it with M_ZERO.

Note it's malloc(3) inside !_KERNEL block
for fsck_ffs(8) to replay WAPBL journal,
so it could be seriously harmful on recovery.

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index