xfer_printf() occasionally has to deal with strings that are potentially long, such as HTTP URIs with multiple query parameters. Allocating these on the stack can lead to stack overruns and memory corruption. Fix by using vasprintf() instead of a stack allocation. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
19 |
|
19 |
|
20 |
|
20 |
|
21 |
|
21 |
|
|
22 |
|
|
22 |
|
23 |
|
23 |
|
24 |
|
24 |
|
25 |
|
|
|
||
297 |
|
298 |
|
298 |
|
299 |
|
299 |
|
300 |
|
300 |
|
|
|
301 |
|
301 |
|
|
302 |
|
|
|
303 |
|
|
|
304 |
|
|
302 |
|
305 |
|
|
306 |
|
|
303 |
|
307 |
|
304 |
|
|
|
305 |
|
|
|
306 |
|
|
|
307 |
|
|
|
308 |
|
|
|
309 |
|
|
|
|
308 |
|
|
|
309 |
|
|
|
310 |
|
|
|
311 |
|
|
310 |
|
312 |
|
|
313 |
|
|
|
314 |
|
|
|
315 |
|
|
|
316 |
|
|
|
317 |
|
|
|
318 |
|
|
|
319 |
|
|
|
320 |
|
|
|
321 |
|
|
|
322 |
|
|
311 |
|
323 |
|
312 |
|
324 |
|
313 |
|
325 |
|