mirror of
https://github.com/status-im/QR-Code-generator.git
synced 2026-08-31 01:31:10 +00:00
Added an assertion to QrCode.getNumRawDataModules() in all language versions.
This commit is contained in:
@@ -550,6 +550,7 @@ class QrCode(object):
|
||||
result -= (25 * numalign - 10) * numalign - 55
|
||||
if ver >= 7:
|
||||
result -= 36
|
||||
assert 208 <= result <= 29648
|
||||
return result
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user