mirror of
https://github.com/github/codeql-action.git
synced 2026-11-05 04:29:40 +00:00
Rebuild
This commit is contained in:
316
lib/entry-points.js
generated
316
lib/entry-points.js
generated
@@ -157611,10 +157611,18 @@ var require_cipherModes = __commonJS({
|
||||
return false;
|
||||
}
|
||||
var len = output.length();
|
||||
if (len === 0) {
|
||||
return true;
|
||||
}
|
||||
var count = output.at(len - 1);
|
||||
if (count > this.blockSize << 2) {
|
||||
if (count === 0 || count > this.blockSize || count > len) {
|
||||
return false;
|
||||
}
|
||||
for (var i = 2; i <= count; ++i) {
|
||||
if (output.at(len - i) !== count) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
output.truncate(count);
|
||||
return true;
|
||||
};
|
||||
@@ -157676,10 +157684,18 @@ var require_cipherModes = __commonJS({
|
||||
return false;
|
||||
}
|
||||
var len = output.length();
|
||||
if (len === 0) {
|
||||
return true;
|
||||
}
|
||||
var count = output.at(len - 1);
|
||||
if (count > this.blockSize << 2) {
|
||||
if (count === 0 || count > this.blockSize || count > len) {
|
||||
return false;
|
||||
}
|
||||
for (var i = 2; i <= count; ++i) {
|
||||
if (output.at(len - i) !== count) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
output.truncate(count);
|
||||
return true;
|
||||
};
|
||||
@@ -157937,11 +157953,14 @@ var require_cipherModes = __commonJS({
|
||||
} else {
|
||||
additionalData = forge.util.createBuffer();
|
||||
}
|
||||
if ("tagLength" in options) {
|
||||
this._tagLength = options.tagLength;
|
||||
if (options.tagLength !== void 0 && options.tagLength !== null) {
|
||||
this._tagLength = Number(options.tagLength);
|
||||
} else {
|
||||
this._tagLength = 128;
|
||||
}
|
||||
if ([128, 120, 112, 104, 96, 64, 32].indexOf(this._tagLength) === -1) {
|
||||
throw new Error("Invalid tag length.");
|
||||
}
|
||||
this._tag = null;
|
||||
if (options.decrypt) {
|
||||
this._tag = forge.util.createBuffer(options.tag).getBytes();
|
||||
@@ -158892,7 +158911,10 @@ var require_asn1 = __commonJS({
|
||||
var subOptions = {
|
||||
// enforce strict mode to avoid parsing ASN.1 from plain data
|
||||
strict: true,
|
||||
decodeBitStrings: true
|
||||
// only decode one level of BIT STRINGs, nested decoding has
|
||||
// quadratic cost due to copies for change detection
|
||||
decodeBitStrings: false,
|
||||
maxDepth: options.maxDepth
|
||||
};
|
||||
var composed = _fromDer(bytes, remaining, depth + 1, subOptions);
|
||||
var used = start - bytes.length();
|
||||
@@ -158996,12 +159018,16 @@ var require_asn1 = __commonJS({
|
||||
asn1.oidToDer = function(oid) {
|
||||
var values = oid.split(".");
|
||||
var bytes = forge.util.createBuffer();
|
||||
bytes.putByte(40 * parseInt(values[0], 10) + parseInt(values[1], 10));
|
||||
var first = parseInt(values[0], 10);
|
||||
var second = parseInt(values[1], 10);
|
||||
if (!(first >= 0 && first <= 2 && second >= 0) || first < 2 && second > 39) {
|
||||
throw new Error("Invalid OID; the first two arcs are out of range.");
|
||||
}
|
||||
var last, valueBytes, value, b;
|
||||
for (var i = 2; i < values.length; ++i) {
|
||||
for (var i = 1; i < values.length; ++i) {
|
||||
last = true;
|
||||
valueBytes = [];
|
||||
value = parseInt(values[i], 10);
|
||||
value = i === 1 ? 40 * first + second : parseInt(values[i], 10);
|
||||
if (value > 4294967295) {
|
||||
throw new Error("OID value too large; max is 32-bits.");
|
||||
}
|
||||
@@ -159025,9 +159051,9 @@ var require_asn1 = __commonJS({
|
||||
if (typeof bytes === "string") {
|
||||
bytes = forge.util.createBuffer(bytes);
|
||||
}
|
||||
var b = bytes.getByte();
|
||||
oid = Math.floor(b / 40) + "." + b % 40;
|
||||
var b;
|
||||
var value = 0;
|
||||
var first = true;
|
||||
while (bytes.length() > 0) {
|
||||
if (value > 70368744177663) {
|
||||
throw new Error("OID value too large; max is 53-bits.");
|
||||
@@ -159037,7 +159063,13 @@ var require_asn1 = __commonJS({
|
||||
if (b & 128) {
|
||||
value += b & 127;
|
||||
} else {
|
||||
oid += "." + (value + b);
|
||||
value += b;
|
||||
if (first) {
|
||||
oid = value < 80 ? Math.floor(value / 40) + "." + value % 40 : "2." + (value - 80);
|
||||
first = false;
|
||||
} else {
|
||||
oid += "." + value;
|
||||
}
|
||||
value = 0;
|
||||
}
|
||||
}
|
||||
@@ -159873,12 +159905,12 @@ var require_pem = __commonJS({
|
||||
};
|
||||
pem.decode = function(str) {
|
||||
var rval = [];
|
||||
var rMessage = /\s*-----BEGIN ([A-Z0-9- ]+)-----\r?\n?([\x21-\x7e\s]+?(?:\r?\n\r?\n))?([:A-Za-z0-9+\/=\s]+?)-----END \1-----/g;
|
||||
var rHeader = /([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/;
|
||||
var messages = _pemMessageScanner(str);
|
||||
var rHeader = /(?:^|[^\x21-\x7e])([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/;
|
||||
var rCRLF = /\r?\n/;
|
||||
var match2;
|
||||
while (true) {
|
||||
match2 = rMessage.exec(str);
|
||||
match2 = messages.next();
|
||||
if (!match2) {
|
||||
break;
|
||||
}
|
||||
@@ -159901,7 +159933,7 @@ var require_pem = __commonJS({
|
||||
var lines = match2[2].split(rCRLF);
|
||||
var li = 0;
|
||||
while (match2 && li < lines.length) {
|
||||
var line = lines[li].replace(/\s+$/, "");
|
||||
var line = rtrim(lines[li]);
|
||||
for (var nl = li + 1; nl < lines.length; ++nl) {
|
||||
var next = lines[nl];
|
||||
if (!/\s/.test(next[0])) {
|
||||
@@ -159979,6 +160011,140 @@ var require_pem = __commonJS({
|
||||
function ltrim(str) {
|
||||
return str.replace(/^\s+/, "");
|
||||
}
|
||||
function rtrim(str) {
|
||||
var end = str.length;
|
||||
while (end > 0 && /\s/.test(str.charAt(end - 1))) {
|
||||
--end;
|
||||
}
|
||||
return str.substring(0, end);
|
||||
}
|
||||
function _pemMessageScanner(str) {
|
||||
var rBody = /[:A-Za-z0-9+\/=\s]/;
|
||||
var rNotBody = /[^:A-Za-z0-9+\/=\s]/g;
|
||||
var rNotHeader = /[^\x21-\x7e\s]/g;
|
||||
var rLabel = /[A-Z0-9- ]/;
|
||||
function indexOfRegex(regex, i) {
|
||||
regex.lastIndex = i;
|
||||
var match2 = regex.exec(str);
|
||||
return match2 ? match2.index : str.length;
|
||||
}
|
||||
function labelAt(i) {
|
||||
for (var j = i; j < str.length && rLabel.test(str.charAt(j)); ++j) {
|
||||
if (j > i && str.substr(j, 5) === "-----") {
|
||||
return str.substring(i, j);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function blankLineEnd(i) {
|
||||
if (str.charAt(i) === "\r") {
|
||||
++i;
|
||||
}
|
||||
if (str.charAt(i) !== "\n") {
|
||||
return -1;
|
||||
}
|
||||
if (str.charAt(++i) === "\r") {
|
||||
++i;
|
||||
}
|
||||
return str.charAt(i) === "\n" ? i + 1 : -1;
|
||||
}
|
||||
function firstBlankLine(start2, end2) {
|
||||
for (var i = start2; i < end2; ++i) {
|
||||
var v = blankLineEnd(i);
|
||||
if (v !== -1 && v < end2) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
var ends = {};
|
||||
for (var end = str.indexOf("-----END "); end !== -1; end = str.indexOf("-----END ", end + 1)) {
|
||||
var endLabel = labelAt(end + 9);
|
||||
var start = end;
|
||||
while (start > 0 && rBody.test(str.charAt(start - 1))) {
|
||||
--start;
|
||||
}
|
||||
var blank = firstBlankLine(start, end);
|
||||
if (endLabel !== null && blank !== -1) {
|
||||
var key = "$" + endLabel;
|
||||
(ends[key] = ends[key] || []).push({ end, blank });
|
||||
}
|
||||
}
|
||||
var pos = 0;
|
||||
var headerEnd = -1;
|
||||
return {
|
||||
next: function() {
|
||||
var begin;
|
||||
while ((begin = str.indexOf("-----BEGIN ", pos)) !== -1) {
|
||||
pos = begin + 1;
|
||||
var label = labelAt(begin + 11);
|
||||
if (label === null) {
|
||||
continue;
|
||||
}
|
||||
var q = begin + 16 + label.length;
|
||||
var bodyEnd = indexOfRegex(rNotBody, q);
|
||||
var bodyEndOk = str.substr(bodyEnd, 9) === "-----END " && labelAt(bodyEnd + 9) === label;
|
||||
if (q > headerEnd) {
|
||||
headerEnd = indexOfRegex(rNotHeader, q);
|
||||
}
|
||||
var later = null;
|
||||
var list = ends["$" + label];
|
||||
if (list) {
|
||||
var lo = 0;
|
||||
var hi = list.length;
|
||||
while (lo < hi) {
|
||||
var mid = lo + hi >> 1;
|
||||
if (list[mid].end > bodyEnd) {
|
||||
hi = mid;
|
||||
} else {
|
||||
lo = mid + 1;
|
||||
}
|
||||
}
|
||||
later = list[lo] || null;
|
||||
}
|
||||
var starts = [];
|
||||
if (str.charAt(q) === "\r") {
|
||||
if (str.charAt(q + 1) === "\n") {
|
||||
starts.push(q + 2);
|
||||
}
|
||||
starts.push(q + 1);
|
||||
} else if (str.charAt(q) === "\n") {
|
||||
starts.push(q + 1);
|
||||
}
|
||||
starts.push(q);
|
||||
for (var i = 0; i < starts.length; ++i) {
|
||||
var t = starts[i];
|
||||
var blank2 = bodyEndOk ? firstBlankLine(t + 1, bodyEnd) : -1;
|
||||
var end2 = bodyEnd;
|
||||
if (blank2 === -1 && later) {
|
||||
blank2 = later.blank;
|
||||
end2 = later.end;
|
||||
}
|
||||
if (blank2 !== -1 && blank2 <= headerEnd) {
|
||||
var v = blankLineEnd(blank2);
|
||||
pos = end2 + 14 + label.length;
|
||||
return [
|
||||
str.substring(begin, pos),
|
||||
label,
|
||||
str.substring(t, v),
|
||||
str.substring(v, end2)
|
||||
];
|
||||
}
|
||||
if (bodyEndOk && t < bodyEnd) {
|
||||
pos = bodyEnd + 14 + label.length;
|
||||
return [
|
||||
str.substring(begin, pos),
|
||||
label,
|
||||
void 0,
|
||||
str.substring(t, bodyEnd)
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -162416,7 +162582,7 @@ var require_jsbn = __commonJS({
|
||||
return r;
|
||||
}
|
||||
function bnModInverse(m) {
|
||||
if (this.signum() == 0) {
|
||||
if (this.signum() <= 0 || m.signum() <= 0) {
|
||||
return BigInteger.ZERO;
|
||||
}
|
||||
var ac = m.isEven();
|
||||
@@ -163295,6 +163461,41 @@ var require_rsa = __commonJS({
|
||||
capture: "digest"
|
||||
}]
|
||||
};
|
||||
var _encodeDigestInfo = function(oid, digest, withParameters) {
|
||||
var digestAlgorithm = [asn1.create(
|
||||
asn1.Class.UNIVERSAL,
|
||||
asn1.Type.OID,
|
||||
false,
|
||||
asn1.oidToDer(oid).getBytes()
|
||||
)];
|
||||
if (withParameters) {
|
||||
digestAlgorithm.push(asn1.create(
|
||||
asn1.Class.UNIVERSAL,
|
||||
asn1.Type.NULL,
|
||||
false,
|
||||
""
|
||||
));
|
||||
}
|
||||
return asn1.toDer(asn1.create(
|
||||
asn1.Class.UNIVERSAL,
|
||||
asn1.Type.SEQUENCE,
|
||||
true,
|
||||
[
|
||||
asn1.create(
|
||||
asn1.Class.UNIVERSAL,
|
||||
asn1.Type.SEQUENCE,
|
||||
true,
|
||||
digestAlgorithm
|
||||
),
|
||||
asn1.create(
|
||||
asn1.Class.UNIVERSAL,
|
||||
asn1.Type.OCTETSTRING,
|
||||
false,
|
||||
digest
|
||||
)
|
||||
]
|
||||
)).getBytes();
|
||||
};
|
||||
var emsaPkcs1v15encode = function(md2) {
|
||||
var oid;
|
||||
if (md2.algorithm in pki2.oids) {
|
||||
@@ -163798,6 +163999,13 @@ var require_rsa = __commonJS({
|
||||
);
|
||||
}
|
||||
}
|
||||
var withParameters = _encodeDigestInfo(oid, capture.digest, true);
|
||||
var withoutParameters = _encodeDigestInfo(oid, capture.digest, false);
|
||||
if (d2.substring(0, withParameters.length) !== withParameters && d2.substring(0, withoutParameters.length) !== withoutParameters) {
|
||||
throw new Error(
|
||||
"ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value."
|
||||
);
|
||||
}
|
||||
return digest2 === capture.digest;
|
||||
}
|
||||
};
|
||||
@@ -164758,6 +164966,9 @@ var require_pbe = __commonJS({
|
||||
};
|
||||
pki2.pbe.generatePkcs12Key = function(password, salt, id, iter, n, md2) {
|
||||
var j, l;
|
||||
if (!(iter >= 1)) {
|
||||
throw new Error("PKCS#12 key derivation iteration count must be >= 1.");
|
||||
}
|
||||
if (typeof md2 === "undefined" || md2 === null) {
|
||||
if (!("sha1" in forge.md)) {
|
||||
throw new Error('"sha1" hash algorithm unavailable.');
|
||||
@@ -166043,6 +166254,7 @@ var require_x509 = __commonJS({
|
||||
};
|
||||
var _verifySignature = function(options) {
|
||||
var cert = options.certificate;
|
||||
var publicKey = options.publicKey || cert.publicKey;
|
||||
var scheme;
|
||||
switch (cert.signatureOid) {
|
||||
case oids.sha1WithRSAEncryption:
|
||||
@@ -166080,7 +166292,7 @@ var require_x509 = __commonJS({
|
||||
);
|
||||
break;
|
||||
}
|
||||
return cert.publicKey.verify(
|
||||
return publicKey.verify(
|
||||
options.md.digest().getBytes(),
|
||||
options.signature,
|
||||
scheme
|
||||
@@ -166300,7 +166512,8 @@ var require_x509 = __commonJS({
|
||||
}
|
||||
if (md2 !== null) {
|
||||
rval = _verifySignature({
|
||||
certificate: cert,
|
||||
certificate: child,
|
||||
publicKey: cert.publicKey,
|
||||
md: md2,
|
||||
signature: child.signature
|
||||
});
|
||||
@@ -167535,10 +167748,7 @@ var require_x509 = __commonJS({
|
||||
}
|
||||
}
|
||||
if (parent) {
|
||||
var parents = parent;
|
||||
if (!forge.util.isArray(parents)) {
|
||||
parents = [parents];
|
||||
}
|
||||
var parents = forge.util.isArray(parent) ? parent.slice() : [parent];
|
||||
var verified = false;
|
||||
while (!verified && parents.length > 0) {
|
||||
parent = parents.shift();
|
||||
@@ -167583,7 +167793,7 @@ var require_x509 = __commonJS({
|
||||
}
|
||||
}
|
||||
if (error3 === null && (!first || chain.length === 0 && (!parent || selfSigned))) {
|
||||
var bcExt = cert.getExtension("basicConstraints");
|
||||
var bcExt = cert.getExtension({ id: "2.5.29.19" });
|
||||
var keyUsageExt = cert.getExtension("keyUsage");
|
||||
if (keyUsageExt !== null) {
|
||||
if (!keyUsageExt.keyCertSign || bcExt === null) {
|
||||
@@ -167605,7 +167815,7 @@ var require_x509 = __commonJS({
|
||||
error: pki2.certificateError.bad_certificate
|
||||
};
|
||||
}
|
||||
if (error3 === null && keyUsageExt !== null && "pathLenConstraint" in bcExt) {
|
||||
if (error3 === null && bcExt !== null && "pathLenConstraint" in bcExt) {
|
||||
var pathLen = depth - 1;
|
||||
if (pathLen > bcExt.pathLenConstraint) {
|
||||
error3 = {
|
||||
@@ -167989,6 +168199,9 @@ var require_pkcs12 = __commonJS({
|
||||
}
|
||||
var macSalt = new forge.util.ByteBuffer(capture.macSalt);
|
||||
var macIterations = "macIterations" in capture ? parseInt(forge.util.bytesToHex(capture.macIterations), 16) : 1;
|
||||
if (!(macIterations >= 1)) {
|
||||
throw new Error("PKCS#12 MAC iteration count must be >= 1.");
|
||||
}
|
||||
var macKey = p12.generateKey(
|
||||
password,
|
||||
macSalt,
|
||||
@@ -169250,7 +169463,7 @@ var require_tls = __commonJS({
|
||||
}
|
||||
});
|
||||
}
|
||||
if (c.serverCertificate === null) {
|
||||
if (c.session.serverCertificate === null) {
|
||||
var error3 = {
|
||||
message: "No server certificate provided. Not enough security.",
|
||||
send: true,
|
||||
@@ -169274,8 +169487,8 @@ var require_tls = __commonJS({
|
||||
error3.alert.description = ret;
|
||||
}
|
||||
}
|
||||
return c.error(c, error3);
|
||||
}
|
||||
return c.error(c, error3);
|
||||
}
|
||||
if (c.session.certificateRequest !== null) {
|
||||
record = tls.createRecord(c, {
|
||||
@@ -169531,7 +169744,7 @@ var require_tls = __commonJS({
|
||||
var length = b.getInt16();
|
||||
var payload = b.getBytes(length);
|
||||
if (type === tls.HeartbeatMessageType.heartbeat_request) {
|
||||
if (c.handshaking || length > payload.length) {
|
||||
if (c.handshakes === 0 || c.handshaking || length > payload.length) {
|
||||
return c.process();
|
||||
}
|
||||
tls.queue(c, tls.createRecord(c, {
|
||||
@@ -170446,6 +170659,7 @@ var require_tls = __commonJS({
|
||||
description: tls.Alert.Description.unexpected_message
|
||||
}
|
||||
});
|
||||
return rval;
|
||||
}
|
||||
}
|
||||
c2.record.ready = true;
|
||||
@@ -170510,24 +170724,48 @@ var require_tls = __commonJS({
|
||||
tls.flush(c);
|
||||
}
|
||||
};
|
||||
var _processing = false;
|
||||
var _processNext = false;
|
||||
var _processRecord = function(c2) {
|
||||
var rval = 0;
|
||||
if (!c2.fail) {
|
||||
if (c2.record !== null && c2.record.ready && c2.record.fragment.isEmpty()) {
|
||||
c2.record = null;
|
||||
}
|
||||
if (c2.record === null) {
|
||||
rval = _readRecordHeader(c2);
|
||||
}
|
||||
if (!c2.fail && c2.record !== null && !c2.record.ready) {
|
||||
rval = _readRecord(c2);
|
||||
}
|
||||
if (!c2.fail && c2.record !== null && c2.record.ready) {
|
||||
_update(c2, c2.record);
|
||||
}
|
||||
}
|
||||
return rval;
|
||||
};
|
||||
c.process = function(data) {
|
||||
var rval = 0;
|
||||
if (data) {
|
||||
c.input.putBytes(data);
|
||||
}
|
||||
if (!c.fail) {
|
||||
if (c.record !== null && c.record.ready && c.record.fragment.isEmpty()) {
|
||||
c.record = null;
|
||||
}
|
||||
if (c.record === null) {
|
||||
rval = _readRecordHeader(c);
|
||||
}
|
||||
if (!c.fail && c.record !== null && !c.record.ready) {
|
||||
rval = _readRecord(c);
|
||||
}
|
||||
if (!c.fail && c.record !== null && c.record.ready) {
|
||||
_update(c, c.record);
|
||||
if (_processing && typeof data === "undefined") {
|
||||
_processNext = true;
|
||||
return rval;
|
||||
}
|
||||
var processing = _processing;
|
||||
var processNext = _processNext;
|
||||
_processing = true;
|
||||
_processNext = false;
|
||||
try {
|
||||
rval = _processRecord(c);
|
||||
while (_processNext) {
|
||||
_processNext = false;
|
||||
_processRecord(c);
|
||||
}
|
||||
} finally {
|
||||
_processing = processing;
|
||||
_processNext = processNext;
|
||||
}
|
||||
return rval;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user