]> sigrok.org Git - libsigrok.git/commit
output/csv: fix segfault with logic channels
authorWolfram Sang <redacted>
Thu, 11 May 2017 11:51:08 +0000 (13:51 +0200)
committerUwe Hermann <redacted>
Sat, 13 May 2017 20:34:13 +0000 (22:34 +0200)
commitd3cc09a612a6f8f2bf258bbd33a7dfd2c3a30968
tree1cd417c0aa8829d07227ad782a90fffd68301725
parent6a235225b3817d45c3d4d1b9ce2c4928c1472256
output/csv: fix segfault with logic channels

'i' was iterating in steps of unitsize. However, the destination array
was also indexed with it, but it is of u8 type. Let 'i' run bytewise and
only multiply with unitsize when we need it.

This fixes parts of bug #844.

Signed-off-by: Wolfram Sang <redacted>
src/output/csv.c