Skip to content

Commit

Permalink
Merge branch 'NAS-130825-2-fix-coverity' of https://github.com/ixhamz…
Browse files Browse the repository at this point in the history
…a/util-linux

* 'NAS-130825-2-fix-coverity' of https://github.com/ixhamza/util-linux:
  libblkid: zfs: fix overflow warning [coverity scan]
  • Loading branch information
karelzak committed Nov 26, 2024
2 parents 3b4d101 + f2cf56c commit eb788e2
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 eb788e2

Please sign in to comment.