]> git.proxmox.com Git - mirror_zfs.git/commit
lua: cast through uintptr_t when return a pointer
authorBrooks Davis <brooks@one-eyed-alien.net>
Thu, 27 Oct 2022 22:39:06 +0000 (23:39 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 3 Nov 2022 16:52:28 +0000 (09:52 -0700)
commit84477e148dccf4665067c0d39006f31bb073cc9e
treeaec3ca4becef85763ae697a6b41af0dbd40e1651
parentb9041e1f27b7b29b27ac3b873c7ba2922bccca01
lua: cast through uintptr_t when return a pointer

Don't assume size_t can carry pointer provenance and use uintptr_t
(identialy on all current platforms) instead.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Signed-off-by: Brooks Davis <brooks.davis@sri.com>
Closes #14131
module/lua/lapi.c