This commit is contained in:
github-actions[bot]
2025-11-26 22:34:54 +00:00
parent 0c204fc557
commit 4822f934e3
12 changed files with 62 additions and 26 deletions

View File

@@ -27670,7 +27670,7 @@ var require_package = __commonJS({
"js-yaml": "^4.1.1",
jsonschema: "1.4.1",
long: "^5.3.2",
"node-forge": "^1.3.1",
"node-forge": "^1.3.2",
semver: "^7.7.3",
uuid: "^13.0.0"
},

2
lib/analyze-action.js generated
View File

@@ -27670,7 +27670,7 @@ var require_package = __commonJS({
"js-yaml": "^4.1.1",
jsonschema: "1.4.1",
long: "^5.3.2",
"node-forge": "^1.3.1",
"node-forge": "^1.3.2",
semver: "^7.7.3",
uuid: "^13.0.0"
},

View File

@@ -27670,7 +27670,7 @@ var require_package = __commonJS({
"js-yaml": "^4.1.1",
jsonschema: "1.4.1",
long: "^5.3.2",
"node-forge": "^1.3.1",
"node-forge": "^1.3.2",
semver: "^7.7.3",
uuid: "^13.0.0"
},

View File

@@ -27670,7 +27670,7 @@ var require_package = __commonJS({
"js-yaml": "^4.1.1",
jsonschema: "1.4.1",
long: "^5.3.2",
"node-forge": "^1.3.1",
"node-forge": "^1.3.2",
semver: "^7.7.3",
uuid: "^13.0.0"
},

2
lib/init-action.js generated
View File

@@ -27670,7 +27670,7 @@ var require_package = __commonJS({
"js-yaml": "^4.1.1",
jsonschema: "1.4.1",
long: "^5.3.2",
"node-forge": "^1.3.1",
"node-forge": "^1.3.2",
semver: "^7.7.3",
uuid: "^13.0.0"
},

View File

@@ -27670,7 +27670,7 @@ var require_package = __commonJS({
"js-yaml": "^4.1.1",
jsonschema: "1.4.1",
long: "^5.3.2",
"node-forge": "^1.3.1",
"node-forge": "^1.3.2",
semver: "^7.7.3",
uuid: "^13.0.0"
},

View File

@@ -27670,7 +27670,7 @@ var require_package = __commonJS({
"js-yaml": "^4.1.1",
jsonschema: "1.4.1",
long: "^5.3.2",
"node-forge": "^1.3.1",
"node-forge": "^1.3.2",
semver: "^7.7.3",
uuid: "^13.0.0"
},

View File

@@ -27670,7 +27670,7 @@ var require_package = __commonJS({
"js-yaml": "^4.1.1",
jsonschema: "1.4.1",
long: "^5.3.2",
"node-forge": "^1.3.1",
"node-forge": "^1.3.2",
semver: "^7.7.3",
uuid: "^13.0.0"
},

View File

@@ -24935,7 +24935,7 @@ var require_util8 = __commonJS({
parts.push("<?>");
}
break;
// FIXME: do proper formating for numbers, etc
// FIXME: do proper formatting for numbers, etc
//case 'f':
//case 'd':
case "%":
@@ -26386,6 +26386,7 @@ var require_asn1 = __commonJS({
GENERALIZEDTIME: 24,
BMPSTRING: 30
};
asn1.maxDepth = 256;
asn1.create = function(tagClass, type2, constructed, value, options) {
if (forge.util.isArray(value)) {
var tmp = [];
@@ -26527,6 +26528,9 @@ var require_asn1 = __commonJS({
if (!("decodeBitStrings" in options)) {
options.decodeBitStrings = true;
}
if (!("maxDepth" in options)) {
options.maxDepth = asn1.maxDepth;
}
if (typeof bytes === "string") {
bytes = forge.util.createBuffer(bytes);
}
@@ -26541,6 +26545,9 @@ var require_asn1 = __commonJS({
return value;
};
function _fromDer(bytes, remaining, depth, options) {
if (depth >= options.maxDepth) {
throw new Error("ASN.1 parsing error: Max depth exceeded.");
}
var start;
_checkBufferLength(bytes, remaining, 2);
var b1 = bytes.getByte();
@@ -26716,6 +26723,9 @@ var require_asn1 = __commonJS({
last = true;
valueBytes = [];
value = parseInt(values[i], 10);
if (value > 4294967295) {
throw new Error("OID value too large; max is 32-bits.");
}
do {
b = value & 127;
value = value >>> 7;
@@ -26740,8 +26750,11 @@ var require_asn1 = __commonJS({
oid = Math.floor(b / 40) + "." + b % 40;
var value = 0;
while (bytes.length() > 0) {
if (value > 70368744177663) {
throw new Error("OID value too large; max is 53-bits.");
}
b = bytes.getByte();
value = value << 7;
value = value * 128;
if (b & 128) {
value += b & 127;
} else {
@@ -26902,19 +26915,40 @@ var require_asn1 = __commonJS({
if (v.value && forge.util.isArray(v.value)) {
var j = 0;
for (var i = 0; rval && i < v.value.length; ++i) {
rval = v.value[i].optional || false;
if (obj.value[j]) {
rval = asn1.validate(obj.value[j], v.value[i], capture, errors);
if (rval) {
++j;
} else if (v.value[i].optional) {
var schemaItem = v.value[i];
rval = !!schemaItem.optional;
var objChild = obj.value[j];
if (!objChild) {
if (!schemaItem.optional) {
rval = false;
if (errors) {
errors.push("[" + v.name + '] Missing required element. Expected tag class "' + schemaItem.tagClass + '", type "' + schemaItem.type + '"');
}
}
continue;
}
var schemaHasTag = typeof schemaItem.tagClass !== "undefined" && typeof schemaItem.type !== "undefined";
if (schemaHasTag && (objChild.tagClass !== schemaItem.tagClass || objChild.type !== schemaItem.type)) {
if (schemaItem.optional) {
rval = true;
continue;
} else {
rval = false;
if (errors) {
errors.push("[" + v.name + "] Tag mismatch. Expected (" + schemaItem.tagClass + "," + schemaItem.type + "), got (" + objChild.tagClass + "," + objChild.type + ")");
}
break;
}
}
if (!rval && errors) {
errors.push(
"[" + v.name + '] Tag class "' + v.tagClass + '", type "' + v.type + '" expected value length "' + v.value.length + '", got "' + obj.value.length + '"'
);
var childRval = asn1.validate(objChild, schemaItem, capture, errors);
if (childRval) {
++j;
rval = true;
} else if (schemaItem.optional) {
rval = true;
} else {
rval = false;
break;
}
}
}
@@ -30955,7 +30989,7 @@ var require_rsa = __commonJS({
constructed: false,
capture: "algorithmIdentifier"
}, {
// NULL paramters
// NULL parameters
name: "DigestInfo.DigestAlgorithm.parameters",
tagClass: asn1.Class.UNIVERSAL,
type: asn1.Type.NULL,
@@ -31468,7 +31502,7 @@ var require_rsa = __commonJS({
if (oid === forge.oids.md2 || oid === forge.oids.md5) {
if (!("parameters" in capture)) {
throw new Error(
"ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifer NULL parameters."
"ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifier NULL parameters."
);
}
}
@@ -35665,6 +35699,8 @@ var require_pkcs12 = __commonJS({
if (macValue.getBytes() !== capture.macDigest) {
throw new Error("PKCS#12 MAC could not be verified. Invalid password?");
}
} else if (Array.isArray(obj.value) && obj.value.length > 2) {
throw new Error("Invalid PKCS#12. macData field present but MAC was not validated.");
}
_decodeAuthenticatedSafe(pfx, data.value, strict, password);
return pfx;
@@ -47328,7 +47364,7 @@ var require_package = __commonJS({
"js-yaml": "^4.1.1",
jsonschema: "1.4.1",
long: "^5.3.2",
"node-forge": "^1.3.1",
"node-forge": "^1.3.2",
semver: "^7.7.3",
uuid: "^13.0.0"
},

2
lib/upload-lib.js generated
View File

@@ -28967,7 +28967,7 @@ var require_package = __commonJS({
"js-yaml": "^4.1.1",
jsonschema: "1.4.1",
long: "^5.3.2",
"node-forge": "^1.3.1",
"node-forge": "^1.3.2",
semver: "^7.7.3",
uuid: "^13.0.0"
},

View File

@@ -27670,7 +27670,7 @@ var require_package = __commonJS({
"js-yaml": "^4.1.1",
jsonschema: "1.4.1",
long: "^5.3.2",
"node-forge": "^1.3.1",
"node-forge": "^1.3.2",
semver: "^7.7.3",
uuid: "^13.0.0"
},

View File

@@ -27670,7 +27670,7 @@ var require_package = __commonJS({
"js-yaml": "^4.1.1",
jsonschema: "1.4.1",
long: "^5.3.2",
"node-forge": "^1.3.1",
"node-forge": "^1.3.2",
semver: "^7.7.3",
uuid: "^13.0.0"
},