NaturalHistoryMuseum / pyzbar

Read one-dimensional barcodes and QR codes from Python 2 and 3.
MIT License
724 stars 175 forks source link

Correctly handle cases where detected data contains null-bytes #76

Closed jaant closed 2 years ago

jaant commented 4 years ago

zbar's zbar_symbol_get_data() API function can return data that contains null-bytes. this patch adds support for such cases.

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 98.095% when pulling 62401e85d08b097da5011180bf32f5e8683dcb80 on jaant:master into 833b375c0e84077943b7100cc9dc22a7bd48754b on NaturalHistoryMuseum:master.

micsthepick commented 4 years ago

I have tested this code with a QR that does contain (many) null characters, and it appears to have worked well

quicklizard99 commented 2 years ago

Thanks very much @jaant I would like to make some changes so will raise a fresh PR that includes your commits