]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r355325: devstat_selectdevs: resize dev_select only after copying data
authorAndriy Gapon <avg@FreeBSD.org>
Thu, 27 Feb 2020 15:22:18 +0000 (15:22 +0000)
committerAndriy Gapon <avg@FreeBSD.org>
Thu, 27 Feb 2020 15:22:18 +0000 (15:22 +0000)
commitee6e421a989a67d25f35ec2f96e977719db90dee
tree39a7416e498b9b4cd5212b1f8aabcfdf59a66071
parentab34c862ad64afd2d79b013edb864c1c3b0454c5
MFC r355325: devstat_selectdevs: resize dev_select only after copying data

The resizing could be a downsizing so some data would be lost and we
could attempt to read past the end of the new memory allocation.

Sponsored by: Panzura
lib/libdevstat/devstat.c