Re: mountd: potential use of uninitialized stack data

2023-02-22 Thread Alexander Bluhm
On Wed, Feb 22, 2023 at 10:19:57AM -0700, Todd C. Miller wrote: > On Wed, 22 Feb 2023 17:11:47 +0100, Moritz Buhl wrote: > > > The tool finds a path to ex_search where fsb.f_fsid is uninitialized. > > > > ex_search compares the potentially uninitialized stack data: > > > > ex_search(fsid_t *fsid)

Re: mountd: potential use of uninitialized stack data

2023-02-22 Thread Todd C . Miller
On Wed, 22 Feb 2023 17:11:47 +0100, Moritz Buhl wrote: > The tool finds a path to ex_search where fsb.f_fsid is uninitialized. > > ex_search compares the potentially uninitialized stack data: > > ex_search(fsid_t *fsid) > { > struct exportlist *ep; > > ep = exphead; > while (ep)

mountd: potential use of uninitialized stack data

2023-02-22 Thread Moritz Buhl
Dear tech@, codechecker found the following problem with fsb in sbin/mountd: mntsrv(...) ... struct statfs fsb; ... if (realpath(rpcpath, dirpath) == NULL) { bad = errno; if (debug) fprintf(std