Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/08/04 12:24
Read: times


 
#66239 - RE: Some mysterious errors
Responding to: ???'s previous message
Printf as such is an insecure function(char*,...) which doesn't check whether ... has valid contents. Double check if your field definition matches the printf() parameters, i.e. if you have printf("%d %d %d",x,y /* ,z */); it may compile OK but break on run, as well as will printf("%f",(short)(x)) where %f asks for 4 bytes and x is just 2. With %s value missing results are usually worse because it reads some random value what happens to be next in memory and treats it as pointer to some other memory location, possibly very far, quite possibly not present in system (like 4th gigabyte of RAM...).

List of 17 messages in thread
TopicAuthorDate
An Error in Kiel            01/01/70 00:00      
   RE: An Error in Kiel            01/01/70 00:00      
   Keil            01/01/70 00:00      
   RE: An Error in Kiel            01/01/70 00:00      
      RE: An Error in Kiel            01/01/70 00:00      
         Some mysterious errors            01/01/70 00:00      
            RE: Some mysterious errors            01/01/70 00:00      
               RE: Some mysterious errors            01/01/70 00:00      
                  RE: addendum to the above            01/01/70 00:00      
            Not-so-mysterious errors            01/01/70 00:00      
               RE: Not-so-mysterious errors            01/01/70 00:00      
                  RE: Not-so-mysterious errors            01/01/70 00:00      
                     RE: Not-so-mysterious errors            01/01/70 00:00      
                        RE: Not-so-mysterious errors            01/01/70 00:00      
                           RE:printf            01/01/70 00:00      
   RE: An Error in Kiel            01/01/70 00:00      
      LX51: How will that help?            01/01/70 00:00      

Back to Subject List