bug-tar
[Top][All Lists]
Advanced

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

Re: msan detects uninitialized variables in tar1.34


From: Sergey Poznyakoff
Subject: Re: msan detects uninitialized variables in tar1.34
Date: Wed, 08 Mar 2023 20:07:30 +0100
User-agent: MH (GNU Mailutils 3.15)

That's a false positive. Ignore it.

> @@ -283,6 +283,7 @@ static int
> is_regular_file (const char *name)
>  {
>     struct stat stbuf;
> +  memset(&stbuf,0,sizeof(struct stat));
>
>    if (stat (name, &stbuf) == 0)

That's utterly useless: stbuf is used only if stat returns success, and
in this case it is initialized properly.

Regards,
Sergey



reply via email to

[Prev in Thread] Current Thread [Next in Thread]