Re: bare bones file encrypter/decrypter using 128 bit Serpent algorithm
- From: Flash Gordon <spam@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 25 Jan 2008 17:14:28 +0000
Nick Keighley wrote, On 25/01/08 10:07:
On 24 Jan, 10:22, makobu <makobu.mwambir...@xxxxxxxxx> wrote:
I pointed out a number of areas where it wasThe compiler didn't give out any warnings,
simply wrong.
you didn't ask it to
In any case, if not producing any warnings is sufficient to prove a program is bug free then here is my implementation in standard C of the "Do whatever you want" program. Run it and it will do whatever you want, and it must be correct because it compiles without warning.
int main(void) {return 0;}
and the program does what
its supposed to.
wow. perhaps your testing is poor. You fail to check return
values of calloc(), you allow buffer overflow on input, you
misuse strncpy(), you don't seed rand(). You use rand()
for cryptography!?
I'm sure there were a few other things I pointed out. Such as a buffer overflow even if the user followed the instructions.
I hope you don't write software for anything important.
Doesn't mater if he does, for anything important there would be at least a little QA and any attempt by anyone competent would reject SW like the OPs.
So there might better ways to code the areas, but
they waren't wrong. Not according to gcc anyway.
See above. Compilers are not required to issue diagnostics for all coding errors, and in fact they cannot because the compiler does not know what you intend only what you tell it.
--
Flash Gordon
.
- Follow-Ups:
- References:
- bare bones file encrypter/decrypter using 128 bit Serpent algorithm
- From: makobu
- Re: bare bones file encrypter/decrypter using 128 bit Serpent algorithm
- From: vippstar
- Re: bare bones file encrypter/decrypter using 128 bit Serpent algorithm
- From: Philip Potter
- Re: bare bones file encrypter/decrypter using 128 bit Serpent algorithm
- From: Randy Howard
- Re: bare bones file encrypter/decrypter using 128 bit Serpent algorithm
- From: Mark Bluemel
- Re: bare bones file encrypter/decrypter using 128 bit Serpent algorithm
- From: makobu
- Re: bare bones file encrypter/decrypter using 128 bit Serpent algorithm
- From: Flash Gordon
- Re: bare bones file encrypter/decrypter using 128 bit Serpent algorithm
- From: makobu
- Re: bare bones file encrypter/decrypter using 128 bit Serpent algorithm
- From: Nick Keighley
- bare bones file encrypter/decrypter using 128 bit Serpent algorithm
- Prev by Date: Re: Is Chris Hills the next pope ?
- Next by Date: Re: Is Chris Hills a troll?
- Previous by thread: Re: bare bones file encrypter/decrypter using 128 bit Serpent algorithm
- Next by thread: Re: bare bones file encrypter/decrypter using 128 bit Serpent algorithm
- Index(es):
Relevant Pages
|