]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix an off-by-one bug in string/array handling which lead to memory overwrite
authorBjoern A. Zeeb <bz@FreeBSD.org>
Sat, 2 May 2015 08:31:16 +0000 (08:31 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Sat, 2 May 2015 08:31:16 +0000 (08:31 +0000)
commit44aa151e1b4f07e3f230e017e20ecd4e25595f04
tree607bd3150d92f86807903ce9e0fc5b162147ca4f
parent1d29bfc1497a0596bad6d8ad22655e2478f44504
Fix an off-by-one bug in string/array handling which lead to memory overwrite
and follow-up assertion errors on at least ARM after r282257,
with nvp_magic being 0x6e7600:
Assertion failed: ((nvp)->nvp_magic == 0x6e7670), function nvpair_name, file .../subr_nvpair.c, line 713.

Sponsored by: DARPA/AFRL
sys/kern/subr_nvpair.c