Prevented a string overflow in case of program error. Coverity CID 28767.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user