there is a simple fix for segfault here:
https://github.com/Arachnid/pyqrencode/pull/2

supplied string is over QR code size limit which depends on version and
error correction level used
according to wikipedia [https://en.wikipedia.org/wiki/QR_Code#Storage]
size limit for version 40 with lowest error correction is 2953 bytes
as pyqrencode uses UTF8 by default, this should work:
python -c "import qrencode; qrencode.encode_scaled('a'*2953, version=40,
level=0, size=100);"
while this will not:
python -c "import qrencode; qrencode.encode_scaled('a'*2954, version=40,
level=0, size=100);"


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to