1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #4876 from Snuffleupagus/issue-4875

Prevent adding undefined array entries to CMap.map in mapRangeToArray (issue 4875)
This commit is contained in:
Yury Delendik 2014-06-02 14:31:20 -05:00
commit 3acf5709a0

View file

@ -222,8 +222,8 @@ var CMap = (function CMapClosure() {
},
mapRangeToArray: function(low, high, array) {
var i = 0;
while (low <= high) {
var i = 0, ii = array.length;
while (low <= high && i < ii) {
this.map[low] = array[i++];
++low;
}