cvs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Cvs-dev] Re: Result of CVS Coverity scan, via NetBSD


From: Mark D. Baushke
Subject: Re: [Cvs-dev] Re: Result of CVS Coverity scan, via NetBSD
Date: Fri, 12 May 2006 06:35:19 -0700

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Christos,

Would it make sense to modify src/gnu/usr.bin/cvs/include/config.h
so that it does a

/* Functions defined in src/gnu/dist/xcvs/src/subr.c */
#define xasprintf cvs_xasprintf
#define xmalloc   cvs_xmalloc
#define xrealloc  cvs_xrealloc
#define xstrdup   cvs_xstrdup

or, does the coverity model processing not handle macro processing
correctly?

For what it is worth, I have not finished going through all of the run
22 reported problems. I know that there is at least a few more that are
'real' bugs (cid-1058 and cid-1061 are both such).

Given that our xstrdup() is safe, I will probably be considering reverting
the 

    var = str ? xstrdup (str) : NULL;

changes back into

    var = xstrdup (str);

in the CVS STABLE and CVS FEATURE source bases. (It turns out that CVS
FEATURE uses Xstrdup to do the NULL check before calling the real
xstrdup () function, but has a '#define xstrdup Xstrdup' to hide it.)

        -- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQFEZI8XCg7APGsDnFERAllDAJ9oF3OCzGoyJgY/IuBwqGFBUiCo/ACeOxBS
+ghUiwcNiRrUOM1gJmf1FDQ=
=y5N2
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]