The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: gavin on August 25, 2005, 04:41:52 PM

Title: Security.
Post by: gavin on August 25, 2005, 04:41:52 PM
Hi guys.

I was wondering as i am improving my knowledge every few days in assembler,
what do i look out for concerning bugs[mistakes]  in my code?

Is it safe to assume i should be only worried about the functions we use from c?

Thanks alot.

Title: Re: Security.
Post by: Tedd on August 25, 2005, 05:44:59 PM
There will be as many bugs in your own code as there are in anyone else's. The only difference is that you look at other people's code with fresh eyes. It's good to have someone else check your work, or at least come back to it a few days later when you haven't been thinking about it.
Title: Re: Security.
Post by: gavin on September 08, 2005, 09:54:58 AM
Good point Tedd.

My question still stands tho.
I'll refraise it to ,what type of things should i be looking out for regards the security of my programming.
Secure coding.

Thanks.
Title: Re: Security.
Post by: roticv on September 08, 2005, 12:22:05 PM
Buffer overflow.
Passing correct parameters to functions.

and so on...
Title: Re: Security.
Post by: sluggy on September 08, 2005, 12:33:18 PM
Never trust your input, whether it be keyboard, file, a stream from the web, whatever. When checking your input, don't check for bad things because there could be a million and one of them, instead just check for good input and reject everything else.
Title: Re: Security.
Post by: gavin on September 08, 2005, 12:53:07 PM
I'm going to read about what you said and i'll be back with some examples.
Thanks lads.