mirror_zfs/cmd/zstream
Brooks Davis b9041e1f27 Use intptr_t when storing an integer in a pointer
Cast the integer type to (u)intptr_t before casting to "void *".  In
CHERI C/C++ we warn on bare casts from integers to pointers to catch
attempts to create pointers our of thin air.  We allow the warning to be
supressed with a suitable cast through (u)intptr_t.

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
2022-11-03 09:52:23 -07:00
..
Makefile.am Add a "zstream decompress" subcommand 2022-06-24 13:28:42 -07:00
zstream_decompress.c Use intptr_t when storing an integer in a pointer 2022-11-03 09:52:23 -07:00
zstream_dump.c Fix declarations of non-global variables 2022-10-18 11:05:32 -07:00
zstream_redup.c Add a "zstream decompress" subcommand 2022-06-24 13:28:42 -07:00
zstream_token.c Fix userland dereference NULL return value bugs 2022-09-30 17:02:57 -07:00
zstream.c Add a "zstream decompress" subcommand 2022-06-24 13:28:42 -07:00
zstream.h Add a "zstream decompress" subcommand 2022-06-24 13:28:42 -07:00