Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer > Re: Something i...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 10 of 12 Topic 995 of 1040
Post > Topic >>

Re: Something is stepping on something

by Paul Russell <prussell@[EMAIL PROTECTED] > Feb 14, 2008 at 02:23 PM

Robert Peirce wrote:
> In article <61fssiF1ukgf3U2@[EMAIL PROTECTED]
>,
>  Paul Russell <prussell@[EMAIL PROTECTED]
> wrote:
> 
>> You really shouldn't rely on this kind of behaviour. Better to write 
>> robust code and take steps to ensure that you never overrun buffers.
> 
> Folks, please give me a break.  This stuff is legacy software, written 
> over 30 years ago and changed only enough to ****t it to new machines.  
> In this case I did make that change and the code works properly
> 
> [resume snipped]
> 

It wasn't meant to be a criticism, just a suggestion. You should never 
assume anything about the layout of variables in memory - it can change 
not only between different machines and different compilers but also 
between different builds (e.g. if you change compiler switches). Rather 
than repeatedly "fixing" these problems on an ad hoc basis you could 
just invest a little time making the code more robust - it would 
probably be a net win in the long run.

Paul
 




 12 Posts in Topic:
Something is stepping on something
Robert Peirce <bob@[EM  2008-02-12 22:55:42 
Re: Something is stepping on something
Reinder Verlinde <rein  2008-02-13 00:19:07 
Re: Something is stepping on something
Robert Peirce <bob@[EM  2008-02-13 02:19:37 
Re: Something is stepping on something
Gregory Weston <uce@[E  2008-02-12 20:37:55 
Re: Something is stepping on something
Sean McBride <cwatson@  2008-02-12 21:34:38 
Re: Something is stepping on something
Robert Peirce <bob@[EM  2008-02-13 02:41:00 
Re: Something is stepping on something
Robert Peirce <bob@[EM  2008-02-13 02:48:56 
Re: Something is stepping on something
Paul Russell <prussell  2008-02-13 09:51:12 
Re: Something is stepping on something
Robert Peirce <bob@[EM  2008-02-14 14:12:00 
Re: Something is stepping on something
Paul Russell <prussell  2008-02-14 14:23:31 
Re: Something is stepping on something
Robert Peirce <bob@[EM  2008-02-14 17:36:16 
Re: Something is stepping on something
Reinder Verlinde <rein  2008-02-14 18:43:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 9:45:30 CST 2008.