Skip to content

Commit

Permalink
libblkid: zfs: fix overflow warning [coverity scan]
Browse files Browse the repository at this point in the history
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
  • Loading branch information
ixhamza committed Nov 21, 2024
1 parent 23a4dc0 commit f2cf56c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libblkid/src/superblocks/zfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?
Expand Down

0 comments on commit f2cf56c

Please sign in to comment.