]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r323675: libsysdecode: report invalid cap_rights_t
authoremaste <emaste@FreeBSD.org>
Sat, 7 Oct 2017 20:20:01 +0000 (20:20 +0000)
committeremaste <emaste@FreeBSD.org>
Sat, 7 Oct 2017 20:20:01 +0000 (20:20 +0000)
commit989ef186383142f1fb1090bd171a86ba3c64d8ad
tree2b14a0150a17e603b5ee8c365d5bd328169eccb6
parent69177ab7d2a8bcddf297fc36372d151102f66af2
MFC r323675: libsysdecode: report invalid cap_rights_t

Previously we'd have an assertion failure in cap_rights_is_set if
sysdecode_cap_rights is called with an invalid cap_rights_t, so test for
validity first.

PR: 222258
Sponsored by: The FreeBSD Foundation
lib/libsysdecode/flags.c