Re: uninits and strsplit problems

"Todd C. Miller" <[email protected]>
Newsgroups gmane.comp.tools.sudo.devel
Message-ID <[email protected]>
On Tue, 18 Aug 2015 09:06:02 -0600, "Todd C. Miller" wrote:

> These all look like false positives to me.  sudo_strsplit() is never
> called with both str and *last NULL.  Also, ep is not used uninitialized
> because it is always set by the first call to sudo_strsplit() when
> str is not NULL.

FYI, strsplit is a lot like strtok_r in its use of a last pointer.
There should be no need to initialize it before use as it gets set
by the first call with a non-NULL str parameter.

 - todd
____________________________________________________________
sudo-workers mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
http://www.sudo.ws/mailman/listinfo/sudo-workers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.