Prevented possible buffer overflow inside xorriso object. Coverity CID 28775.

This commit is contained in:
Thomas Schmitt 2015-11-04 15:57:34 +00:00
parent 72fb287701
commit b253d7696a
2 changed files with 2 additions and 2 deletions

View File

@ -2057,7 +2057,7 @@ int Xorriso_option_volume_date(struct XorrisO *xorriso,
ret= 1; goto ex;
}
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...)");
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
ret= 0; goto ex;

View File

@ -1 +1 @@
#define Xorriso_timestamP "2015.11.04.123926"
#define Xorriso_timestamP "2015.11.04.155640"