xattr_to_extattr() compared each namespace over the length of the
caller's prefix and would read past the end of any shorter name
the values are already null-terminated so we can just use strcmp()
here
Differential D60954
linux(4): compare xattr namespace names with strcmp() Authored by nprice on Wed, Oct 21, 9:16 PM.
Details
xattr_to_extattr() compared each namespace over the length of the the values are already null-terminated so we can just use strcmp()
Diff Detail
Event TimelineComment Actions Small nit: the code after looks to be easily simplified by using strlcpy() in place of strlen() + bcopy() while here. |