Prevented a string overflow in case of program error. Coverity CID 28767.
This commit is contained in:
parent
0d8919084c
commit
8757c1f330
@ -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)
|
||||
|
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2015.11.04.110102"
|
||||
#define Xorriso_timestamP "2015.11.04.114353"
|
||||
|
Loading…
Reference in New Issue
Block a user