emaste aa773f3e23 bhyve: avoid theoretical stack buffer overflow from integer overflow
Use the proper size_t type to match strlen's return type.  This is not
exploitable in practice as this parses command line arguments, which
are limited to well below 2^31 bytes.

This is a minimal change to address the reported issue; hda_parse_config
and the rest of this file will benefit from further review.

Reported by:	Fakhri Zulkifli
Reviewed by:	jhb, markj
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2019-06-25 19:06:43 +00:00
..
2018-06-14 01:34:53 +00:00
2018-06-13 03:22:08 +00:00
2018-06-13 03:22:08 +00:00
2019-02-01 03:09:11 +00:00
2018-06-13 03:22:08 +00:00
2018-06-14 01:34:53 +00:00
2018-06-13 03:22:08 +00:00
2018-06-14 01:34:53 +00:00
2018-06-13 03:22:08 +00:00
2018-06-14 01:34:53 +00:00
2018-06-13 03:22:08 +00:00
2018-06-13 03:22:08 +00:00
2018-06-13 03:22:08 +00:00
2018-06-13 03:22:08 +00:00
2018-06-13 03:22:08 +00:00
2018-06-13 03:22:08 +00:00
2019-06-19 16:09:20 +00:00
2018-06-13 03:22:08 +00:00
2018-06-14 01:34:53 +00:00
2018-06-14 01:34:53 +00:00
2018-06-13 03:22:08 +00:00
2018-06-13 03:22:08 +00:00
2018-06-13 03:22:08 +00:00
2018-06-13 03:22:08 +00:00
2019-02-01 03:09:11 +00:00
2018-06-13 03:22:08 +00:00
2018-06-14 01:34:53 +00:00