@kenjiuno/msgreader
Advanced tools
Comparing version 1.11.0 to 1.12.0-alpha.1
@@ -100,3 +100,3 @@ "use strict"; | ||
var numDifatSectors = (numFatSectors > 109) | ||
? RoundUpto512(4 * (numFatSectors - 109)) / 512 | ||
? RoundUpto512(4 * Math.floor((numFatSectors - 109) / 127 * 128)) / 512 | ||
: 0; | ||
@@ -113,5 +113,22 @@ var firstDifatSector = (numDifatSectors !== 0) | ||
{ | ||
for (var x = 0; x < numFatSectors; x++) { | ||
((x < 109) ? difat1 : difat2).push(firstFatSector + x); | ||
var x = 0; | ||
for (; x < 109; x++) { | ||
difat1.push(firstFatSector + x); | ||
} | ||
var nextDifatSector = firstDifatSector + 1; | ||
for (; x < numFatSectors; x++) { | ||
difat2.push(firstFatSector + x); | ||
var remain = (difat2.length & 127); | ||
if (remain === 127) { | ||
difat2.push(nextDifatSector); | ||
nextDifatSector++; | ||
} | ||
} | ||
while (true) { | ||
var remain = (difat2.length & 127); | ||
if (remain === 0) { | ||
break; | ||
} | ||
difat2.push((remain === 127) ? -2 : -1); | ||
} | ||
} | ||
@@ -118,0 +135,0 @@ // header |
{ | ||
"name": "@kenjiuno/msgreader", | ||
"version": "1.11.0", | ||
"version": "1.12.0-alpha.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
259476
7483
0
22
2