Browse Source

Prevented a string overflow in case of program error. Coverity CID 28767.

master
Thomas Schmitt 7 years ago
parent
commit
cf7ebd6316
  1. 2
      xorriso/parse_exec.c
  2. 2
      xorriso/xorriso_timestamp.h

2
xorriso/parse_exec.c

@ -226,7 +226,7 @@ int Xorriso_set_problem_status(struct XorrisO *xorriso, char *severity,
static int complaints= 0, complaint_limit= 5;
#endif
if(severity[0])
if(severity[0] && strlen(severity) < sizeof(xorriso->problem_status_text))
sev_text= severity;
ret= Xorriso__text_to_sev(sev_text, &sev, 0);
if(ret<=0)

2
xorriso/xorriso_timestamp.h

@ -1 +1 @@
#define Xorriso_timestamP "2015.11.04.110102"
#define Xorriso_timestamP "2015.11.04.114353"

Loading…
Cancel
Save