CompuServe Messages

Program security

    25-Sep-95 11:58:14
Sb: #48272-Program security
Fm: Greg Comeau@Comeau Cmptg 72331,3421
To: Henry Williams 73527,1446
>I noticed that any printf messages in my source were left as text >strings in the compiled program. Yes. > What I don't like about this is that anyone >with a good editor can change what I have written to the user. Yes. >How can I code constant strings into my program and make them less vulnerable >to changes? Well, I'd first review whether the effort is worth it. If so, you have a few options: * Write a program to scan you source and look for string literals and change them to be somethink else, as well as call a myprintf which re-establishes them. * Or at least put them all into one header or .c that you convert. * Build your strings one character at a time. * Put your messages in an external file. * Etc. Some of these suggestions are more practical than others.