Skip to content
This repository was archived by the owner on Jan 3, 2018. It is now read-only.
This repository was archived by the owner on Jan 3, 2018. It is now read-only.

Crash during QR-Code generation #7

@mdornseif

Description

@mdornseif

hongshan liu writes:

hi,Maximillian Dornseif,
I was using your huBarcode,but I found some bugs when I using it.

bug example1:
# -- coding: utf-8 --
# author: liu hongshan email: hongshan.liu@...
from hubarcode.qrcode import QRCodeEncoder
if name == "main":
test = "12345"
ENCODER = QRCodeEncoder(test)
ENCODER.save( "test.png",3)

bug info:
File "/home/works/hudora-huBarcode-7a9d83e/hubarcode/qrcode/textencoder.py", line 207, in create_matrix
matrix_content = self.minfo.create_matrix(self.version, self.codewords)
File "/home/works/hudora-huBarcode-7a9d83e/hubarcode/qrcode/isodata.py", line 109, in create_matrix
codeword_i = codewords[i]
IndexError: list index out of range

could you fix these? thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions