comp.lang.c
[Top] [All Lists]

Re: CERT C Secure Coding Standard - last call for reviewers

Subject: Re: CERT C Secure Coding Standard - last call for reviewers
From: Hallvard B Furuseth
Date: Mon, 31 Mar 2008 13:52:24 +0200
Newsgroups: comp.lang.c

pete writes:
>Richard Heathfield wrote:
>> SECCODE means a macro that evaluates at least one of its
>> arguments more than once.
>> It is clearly a bad idea to pass to such a macro
>> any argument that has side effects. The four side effects that are
>> singled(?!) out in the title are in fact the only four I can think of 
>
> The first three are only one kind of side effect: assignment.

And taking an hour to execute is not a side effect, but still a good
idea to not repeat.

-- 
Hallvard

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy