freebsd-nq/sys/contrib
Jilles Tjoelker 9a8ce256ed libnv: Fix strict-aliasing violation with cookie
In rS323851, some casts were adjusted in calls to nvlist_next() and
nvlist_get_pararr() in order to make scan-build happy. I think these changes
just confused scan-build into not reporting the strict-aliasing violation.

For example, nvlist_xdescriptors() is causing nvlist_next() to write to its
local variable nvp of type nvpair_t * using the lvalue *cookiep of type
void *, which is not allowed. Given the APIs of nvlist_next(),
nvlist_get_parent() and nvlist_get_pararr(), one possible fix is to create a
local void *cookie in nvlist_xdescriptors() and other places, and to convert
the value to nvpair_t * when necessary. This patch implements that fix.

Reviewed by:	oshogbo
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D12760
2017-10-26 18:32:04 +00:00
..
alpine-hal Update Annapurna Alpine HAL 2016-09-20 09:19:22 +00:00
ck Import CK as of commit 6b141c0bdd21ce8b3e14147af8f87f22b20ecf32 2017-04-09 21:02:05 +00:00
cloudabi Import the latest CloudABI definitions, version 0.16. 2017-10-18 19:22:53 +00:00
dev Merge ACPICA 20170929 (take 2). 2017-10-10 19:33:24 +00:00
edk2 Copy needed include files from EDK2. This is a minimal set gleened 2017-03-08 02:47:59 +00:00
ena-com Merge ena-com 1.1.4.2 2017-08-01 11:00:04 +00:00
ipfilter/netinet Fix typo from r323945. 2017-09-24 03:33:26 +00:00
libfdt
libnv libnv: Fix strict-aliasing violation with cookie 2017-10-26 18:32:04 +00:00
ncsw Simplify the page tracking for VA<->PA translations. 2016-11-16 05:24:42 +00:00
ngatm
octeon-sdk octeon sdk: initialize variable to quiet Clang warning 2017-09-14 16:41:22 +00:00
rdma/krping Add support for parsing and using IPv6 addresses in krping. 2017-10-10 12:10:19 +00:00
v4l
vchiq/interface Modernize the use of vm_page_unwire(). Since r288122, vm_page_unwire() 2017-09-24 22:29:11 +00:00
x86emu
xz-embedded