#1024732 python3-pylibdmtx: The decode procedure truncates the decoded byte-string at null character

#1024732#5
Date:
2022-11-24 01:26:02 UTC
From:
To:
Dear Maintainer,

I use libdtmx to place 2D codes with compressed and encrypted (and
therefore binary) content.
I have found that the decode routine truncates the decoded content at
the first null byte.
It seems that it incorrectly uses C-strings to pass the data between the
library and Python.
The dmtxread utility correctly decodes such contents.
I send the demonstrator files:
1) demo.png - the 2D code with binary content containing a null byte in
the middle,
2) demo_bug.py - the Python scripts, which decodes only 37 bits (run it
and it will produce the 37 bit long demo_out_0.bin)
If you run:
dmtxread demo.png > demo_ok.bin
you'll get the 111 bytes long demo_ok.bin with correctly decoded data.

#1024732#10
Date:
2022-11-24 08:30:26 UTC
From:
To:
Dear Maintainer,

This is a duplicate of bug number 1024731
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1024731).
It seemed that my University server refused to forward the bug message,
and therefore I've resubmitted it via another account.

Please join 1024731 and 1024732.

I'm sorry for confusion,
With best regards,
Wojciech Zabolotny