]> git.proxmox.com Git - mirror_zfs.git/commit
zap_leaf: make l_hash[] variable length to silence UBSAN
authorRob N <rob.norris@klarasystems.com>
Wed, 3 Apr 2024 23:38:18 +0000 (10:38 +1100)
committerGitHub <noreply@github.com>
Wed, 3 Apr 2024 23:38:18 +0000 (16:38 -0700)
commitb21b967bd5095d431b71ef63f09e0d31c0ef0b08
treefe2ce99e0ee1305185c5813a00ba9f353546e487
parentb6bbaa837271698f238a9264c4070416077fb67b
zap_leaf: make l_hash[] variable length to silence UBSAN

When UBSAN is active and OpenZFS is a debug build, the l_hash assert at
the bottom of zap_open_leaf() causes UBSAN to complain.

This follows the example in 786641dcf to shut it up.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #15964
include/sys/zap_leaf.h