I'm experiencing a segfault when encoding certain binary files with ASCII encoding. With the attached file, the following command triggers the segfault on a Debian Squeeze AMD64 machine:
dmtxwrite -e a a_ad > /dev/null
If I change the encoding scheme to Base256 the segfault disappears.
The 0.7.2 version also contains various assertion failure with too big file (instead of clean error).
For exemple this one :
$ head -c 1600 /dev/zero > t && dmtxwrite -e 8 t > /dev/null
dmtxwrite: dmtxencode.c:1061: EncodeBase256Codeword: Assertion `newDataLength > 0 && newDataLength <= 1555' failed.
I have also triggered the assertion at dmtxencode.c:1224 but I can't find now how I did it.
Log in to post a comment.