]> sigrok.org Git - libsigrok.git/commit
input/trace32_ad: fix potential buffer overflow for unexpected input data
authorGerhard Sittig <redacted>
Mon, 21 May 2018 17:55:58 +0000 (19:55 +0200)
committerGerhard Sittig <redacted>
Mon, 21 May 2018 18:13:27 +0000 (20:13 +0200)
commit67765e465aaa8cb68de0b975fbd566169e78caf8
tree1c1183593357ea766fceb07b6b312fca694fcd4f
parent090f1e1e5478ea15baa3731fefbd4aff9be78c77
input/trace32_ad: fix potential buffer overflow for unexpected input data

Commit 8c4bff1d25e1 introduced a routine which prints what mostly should
be text, and avoids non-printable characters. This implementation used an
incorrect format string, which could result in data getting written past
the end of a buffer. Fix the format string.
src/input/trace32_ad.c