]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/vfs/vfs_xattr.c
xnu-7195.101.1.tar.gz
[apple/xnu.git] / bsd / vfs / vfs_xattr.c
index 0dfcf949f0f92ac2384c2d2efe4399082e1afc1c..8db2c859fa83f7ae1dfb947ba23bd15a0a2e3420 100644 (file)
@@ -3207,6 +3207,7 @@ check_and_swap_attrhdr(attr_header_t *ah, attr_info_t *ainfop)
         */
        end = ah->data_start + ah->data_length;
        if (ah->total_size > ainfop->finderinfo->offset + ainfop->finderinfo->length ||
+           ah->data_start < sizeof(attr_header_t) ||
            end < ah->data_start ||
            end > ah->total_size) {
                return EINVAL;