[Bug 278546] fdevname_r: pass partially uninitialized memory to kernel

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 24 Apr 2024 16:08:16 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278546

--- Comment #4 from Ivan Rozhuk <rozhuk.im@gmail.com> ---
struct fiodgname_arg fgn = { 0 }; - also work as memset() and used in kernel
and userspace.
struct fiodgname_arg fgn = { .buf = buf, .len = len };- does NOT work: some
memory leave uninitialized

-- 
You are receiving this mail because:
You are the assignee for the bug.