]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
audit(4): fix Coverity issues
authorAlan Somers <asomers@FreeBSD.org>
Wed, 27 Jun 2018 15:28:09 +0000 (15:28 +0000)
committerAlan Somers <asomers@FreeBSD.org>
Wed, 27 Jun 2018 15:28:09 +0000 (15:28 +0000)
commit5641c23fa770b56b7f0f2e79df22cd6bbb8c4972
treedb5a5d5e5511bc9022cf45f3df42b48940fe33ed
parente8a1ec3e059000c939e42cc3c22036fad0474ac5
audit(4): fix Coverity issues

Fix several incorrect buffer size arguments and a file descriptor leak.

Submitted by: aniketp
Reported by: Coverity
CID: 1393489 1393501 1393509 1393510 1393514 1393515 1393516
CID: 1393517 1393518 1393519
MFC after: 2 weeks
X-MFC-With: 335284
X-MFC-With: 335318
X-MFC-With: 335320
Sponsored by: Google, Inc. (GSoC 2018)
Differential Revision: https://reviews.freebsd.org/D16000
tests/sys/audit/administrative.c
tests/sys/audit/file-attribute-access.c
tests/sys/audit/file-attribute-modify.c