]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: zfs: fix overflow warning [coverity scan]
authorAmeer Hamza <ahamza@ixsystems.com>
Thu, 21 Nov 2024 12:18:52 +0000 (17:18 +0500)
committerAmeer Hamza <ahamza@ixsystems.com>
Thu, 21 Nov 2024 12:21:40 +0000 (17:21 +0500)
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
libblkid/src/superblocks/zfs.c

index 4d522cbea8b320ce31567f05797f6b37f1c538be..9cbda6012a155822178683abf1fa7a843e374093 100644 (file)
@@ -342,7 +342,7 @@ static int probe_zfs(blkid_probe pr,
         * Zero out whole nvlist header including fisrt nvpair size
         */
        if (blkid_probe_set_magic(pr, offset, sizeof(struct nvs_header_t),
-           (unsigned char *) &label->nvh_first_size))
+           (unsigned char *) label))
                return (1);
 
        blkid_probe_set_fsendianness(pr, !swab_endian ?