Corrected interpretation of some return values during -find -exec list_extattr. Coverity CID 28704.

This commit is contained in:
Thomas Schmitt 2015-11-08 16:34:59 +00:00
parent 185dc4ce42
commit df49e23bcf
2 changed files with 9 additions and 4 deletions

View File

@ -1013,15 +1013,20 @@ int Xorriso_list_extattr(struct XorrisO *xorriso, void *in_node, char *path,
break;
if((size_t) (upt - uval) < value_lengths[i]) {
strcpy(line, "echo 'OMITTED: Value contains 0-bytes : space \"'\"");
Xorriso_append_extattr_comp(xorriso, space_pt, strlen(space_pt), "e", 1);
ret= Xorriso_append_extattr_comp(xorriso, space_pt, strlen(space_pt),
"e", 1);
if(ret <= 0)
goto ex;
strcat(line, "\"'\" , name \"'\"");
Xorriso_append_extattr_comp(xorriso, name_pt, strlen(name_pt), "e", 1);
ret= Xorriso_append_extattr_comp(xorriso, name_pt, strlen(name_pt),
"e", 1);
if(ret <= 0)
goto ex;
strcat(line, "\"'\" in file '\"");
Xorriso_append_extattr_comp(xorriso, path_pt, strlen(path_pt), "e", 1);
ret= Xorriso_append_extattr_comp(xorriso, path_pt, strlen(path_pt),
"e", 1);
if(ret <= 0)
goto ex;
strcat(line, "\" >&2\n");
/* temporarily disable -backslash_codes with result output */

View File

@ -1 +1 @@
#define Xorriso_timestamP "2015.11.08.161658"
#define Xorriso_timestamP "2015.11.08.163431"