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 08:40:03 -0400, Radovan Sroka wrote: Message-Id: <[email protected]> > I've got another issue, it's not so important as previous but there are many > uninit problems around strsplit function so I looked at this issue and here's > my solution. > > I initialize "ep" variable to NULL before first call of sudo_strsplit in scop > e and add exclusion condition into sudo_strsplit_v1. This patch resolves ever > y warning around sudo_strsplit function. Message-Id: <[email protected]> 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. Message-Id: <[email protected]> - todd ____________________________________________________________ sudo-workers mailing list <[email protected]> For list information, options, or to unsubscribe, visit: http://www.sudo.ws/mailman/listinfo/sudo-workers