From 66961de050b6c56be9d236b9f247ad67aa2ae454 Mon Sep 17 00:00:00 2001 From: Ram Kumar Date: Sun, 4 Jul 2021 05:22:06 +0530 Subject: [PATCH] Require Bug Fixes Array index must be less then Array length --- qrcode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrcode.js b/qrcode.js index 5507c15..97c626a 100644 --- a/qrcode.js +++ b/qrcode.js @@ -470,7 +470,7 @@ var QRCode; var nType = 1; var length = _getUTF8Length(sText); - for (var i = 0, len = QRCodeLimitLength.length; i <= len; i++) { + for (var i = 0, len = QRCodeLimitLength.length; i < len; i++) { var nLimit = 0; switch (nCorrectLevel) {