Dereferencing of null pointer possible?
From: Dirk Hoffmann <dh.discuss_at_web.de>
Date: 2004-10-12 12:11:59 CEST
Hi,
when I was looking at subversion/clients/cmdline/util.c to understand
if (! (commit_items || commit_items->nelts))
I believe the first line should be
if (!commit_items || !commit_items->nelts)
or
if (! (commit_items && commit_items->nelts) )
Otherwise if commit_item is NULL it will be dereferenced.
Regards Dirk
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.