]> git.proxmox.com Git - mirror_zfs.git/blobdiff - include/sys/zap_leaf.h
zap_leaf: make l_hash[] variable length to silence UBSAN
[mirror_zfs.git] / include / sys / zap_leaf.h
index d563edd7ba59911b21351ff8b52b09f001bbb3e1..e54456d3472b0c5c7ed3e4c3570b43a3c4f43705 100644 (file)
@@ -132,7 +132,7 @@ typedef struct zap_leaf_phys {
         * with the ZAP_LEAF_CHUNK() macro.
         */
 
-       uint16_t l_hash[1];
+       uint16_t l_hash[];
 } zap_leaf_phys_t;
 
 typedef union zap_leaf_chunk {