Danger of dereferencing null pointer
From: Dirk Hoffmann <dh.discuss_at_web.de>
Date: 2004-10-12 16:09:55 CEST
Hi,
when I was looking at subversion/clients/cmdline/util.c to comprehend
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.