]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r319156,r319159:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 1 Jun 2017 06:16:57 +0000 (06:16 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 1 Jun 2017 06:16:57 +0000 (06:16 +0000)
commitc98e68b944cb5ea6f0a95996d1dbe3b2d63d0c4a
tree3840df1fa472a7c518879fb0a89030c1e52bb48a
parenta804c21f582a9c5bf9aec1ce0073dba686b0a3c6
MFC r319156,r319159:

r319156:

:nvlist_unpack__duplicate_key : check the result of nvlist_pack(3)

This fixes a potential NULL pointer dereference.

CID: 1362051

r319159:

:dnvlist_get_string__default_value: fix a bogus string comparison test

Check actual_value vs "5", not "5" vs itself.

CID: 1362021

git-svn-id: svn://svn.freebsd.org/base/stable/10@319370 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libnv/tests/dnv_tests.cc
lib/libnv/tests/nv_tests.cc