[PATCH] xfree86: check for NULL pointer before dereferences it in parser code
Keith Packard
keithp at keithp.com
Sat Apr 17 21:14:04 PDT 2010
On Fri, 16 Apr 2010 18:42:19 +0300, Tiago Vignatti <tiago.vignatti at nokia.com> wrote:
> - if (!name || name[0] == '.' || len <= suflen)
> + if (!name)
> + return 0;
> +
> + name = de->d_name;
You might want to assign name before testing it.
--
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100417/b42a0098/attachment.pgp>
More information about the xorg-devel
mailing list