Prevented possible buffer overflow inside xorriso object. Coverity CID 28775.
This commit is contained in:
parent
1f12bee223
commit
7ff4fbe02f
@ -2057,7 +2057,7 @@ int Xorriso_option_volume_date(struct XorrisO *xorriso,
|
|||||||
ret= 1; goto ex;
|
ret= 1; goto ex;
|
||||||
}
|
}
|
||||||
ret= Decode_ecma119_format(&erg, timestring, 0);
|
ret= Decode_ecma119_format(&erg, timestring, 0);
|
||||||
if(ret <= 0) {
|
if(ret <= 0 || strlen(timestring) != 16) {
|
||||||
sprintf(xorriso->info_text, "-volume_date uuid : Not an ECMA-119 time string. (16 decimal digits, range 1970... to 2999...)");
|
sprintf(xorriso->info_text, "-volume_date uuid : Not an ECMA-119 time string. (16 decimal digits, range 1970... to 2999...)");
|
||||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
|
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
|
||||||
ret= 0; goto ex;
|
ret= 0; goto ex;
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2015.11.04.123926"
|
#define Xorriso_timestamP "2015.11.04.155640"
|
||||||
|
Loading…
Reference in New Issue
Block a user