mirror of
https://github.com/NationalSecurityAgency/DCP.git
synced 2026-11-07 06:05:59 -10:00
Fix off-by-one error with xattr parsing.
The xattrs are stored as a long string with '\0' delimited names. Be sure to remove the '\0' before converting each value to base64.
This commit is contained in:
1 parent
ecfbf3def0
commit
0db2db8323
1 file changed
+1
-1
@@ -115,7 +115,7 @@ int process_xattrs(const void *pathmd5, const char *filepath, FILE *out)
|
||||
if (valuesize < 0)
|
||||
log_error("lgetxattr");
|
||||
else
|
||||
io_entry_write_xattr_fields(pathmd5,next,valuebuffer,valuesize,out);
|
||||
io_entry_write_xattr_fields(pathmd5,next,valuebuffer,valuesize-1,out);
|
||||
}
|
||||
|
||||
fflush(out);
|
||||
|
||||
Reference in new issue
Block a user