Files
openocd/src/jtag/drivers
Antonio Borneo 8132b77d61 stlink: swo: use completely the available buffer
The buffer passed to stlink_usb_trace_read() is allocated of size
*size and does not need to be zero-terminated. There is no reason
to not fill its last byte.

When checking the bytes available on swo, limit the retrieved byte
length to *size.

Change-Id: Iade0f8963118695931f13a8a3f1ab204911236b6
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reported-by: Adrian Negreanu <adrian.negreanu@nxp.com>
Reviewed-on: http://openocd.zylin.com/6061
Tested-by: jenkins
Reviewed-by: Adrian M Negreanu <adrian.negreanu@nxp.com>
Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
2021-03-10 21:36:01 +00:00
..
2020-09-05 17:12:25 +01:00
2016-05-24 22:30:55 +01:00
2020-11-15 21:36:56 +00:00
2021-03-10 21:30:54 +00:00
2020-11-04 17:39:22 +00:00
2021-01-18 15:32:21 +00:00
2020-07-26 20:15:34 +01:00
2020-11-15 21:36:56 +00:00
2016-05-24 22:30:55 +01:00
2020-07-26 20:14:37 +01:00
2020-11-04 17:38:45 +00:00
2021-03-10 21:32:12 +00:00
2016-05-24 22:30:55 +01:00
2020-07-26 20:14:37 +01:00
2020-07-26 20:14:37 +01:00
2020-11-04 17:39:22 +00:00