Jessica Clarke a98fa52ec6 kldxref: Avoid buffer overflows in parse_pnp_list
We convert a string like "W32:vendor/device" into "I:vendor;I:device",
where the output is longer than the input, but only allocate space equal
to the length of the input, leading to a buffer overflow.

Instead use open_memstream so we get a safe dynamically-grown buffer.

Found by:	CHERI
Reviewed by:	imp, jhb (mentor)
Approved by:	imp, jhb (mentor)
Obtained from:	CheriBSD
Differential Revision:	https://reviews.freebsd.org/D26637
2020-10-15 18:03:14 +00:00
..
2020-09-17 18:06:57 +00:00
2020-07-08 03:57:47 +00:00
2020-10-09 19:12:44 +00:00
2020-10-09 19:12:44 +00:00
2020-09-15 17:13:29 +00:00
2020-10-09 14:03:45 +00:00
2020-09-24 19:12:03 +00:00
2020-10-09 14:03:45 +00:00
2020-08-25 02:21:27 +00:00
2020-10-09 14:03:45 +00:00
2020-10-09 19:12:44 +00:00
2020-10-09 19:12:44 +00:00
2020-10-09 14:03:45 +00:00
2020-08-17 10:25:02 +00:00
2020-09-01 15:52:18 +00:00
2020-10-09 14:03:45 +00:00
2020-09-09 00:39:47 +00:00
2020-08-25 16:09:23 +00:00
2020-08-21 09:48:00 +00:00
2020-08-24 18:17:13 +00:00
2020-09-11 13:28:37 +00:00
2020-10-09 19:12:44 +00:00
2020-07-14 05:33:23 +00:00