Corrected flaws found by George Danchev with cpp

This commit is contained in:
Thomas Schmitt 2011-02-24 19:20:17 +00:00
parent d66f64b26a
commit 606ac4c077
4 changed files with 5 additions and 3 deletions

View File

@ -398,7 +398,7 @@ int Xorriso_set_filter(struct XorrisO *xorriso, void *in_node,
sprintf(xorriso->info_text, sprintf(xorriso->info_text,
"-set_filter: UID and EUID differ. Will not run external programs."); "-set_filter: UID and EUID differ. Will not run external programs.");
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FATAL", 0); Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FATAL", 0);
return(0); ret= 0; goto ex;
} }
#endif /* ! Xorriso_allow_extf_suiD */ #endif /* ! Xorriso_allow_extf_suiD */

View File

@ -399,6 +399,8 @@ int Xorriso_option_errfile_log(struct XorrisO *xorriso,
sprintf(xorriso->info_text, "-errfile_log: Unknown mode %s", sprintf(xorriso->info_text, "-errfile_log: Unknown mode %s",
Text_shellsafe(mode, sfe, 0)); Text_shellsafe(mode, sfe, 0));
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0); Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
if(fp != NULL)
fclose(fp);
return(0); return(0);
} }

View File

@ -106,7 +106,7 @@ get_single:;
l= strlen(cpt); l= strlen(cpt);
if(l >= linesize - base_length - 1) { if(l >= linesize - base_length - 1) {
strncpy(linept, cpt, linesize - 1); strncpy(linept, cpt, linesize - 1);
line[sizeof(line)-1]= 0; line[linesize - 1]= 0;
sprintf(xorriso->info_text,"Input line too long !"); sprintf(xorriso->info_text,"Input line too long !");
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "SORRY", 0); Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "SORRY", 0);
goto new_empty; goto new_empty;

View File

@ -1 +1 @@
#define Xorriso_timestamP "2011.02.24.191908" #define Xorriso_timestamP "2011.02.24.192029"