]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r354975: bitstring: exit early if _start is past size of the bitstring
authorEric Joyner <erj@FreeBSD.org>
Thu, 2 Jan 2020 23:05:48 +0000 (23:05 +0000)
committerEric Joyner <erj@FreeBSD.org>
Thu, 2 Jan 2020 23:05:48 +0000 (23:05 +0000)
commit451e547849112fb9365cbc761b2682315d1371c2
tree8fa49d555bca4a701e65b0de60ce8eb4836508f2
parent84945cafdd94d30c78c0e5aa21ca6c2f67eedf5a
MFC r354975: bitstring: exit early if _start is past size of the bitstring

This fixes a possible buffer read overflow.

Sponsored by: Intel Corporation
sys/sys/bitstring.h
tests/sys/sys/bitstring_test.c