Imported Upstream version 6.6.0.108

Former-commit-id: 00c6fff7917ab7dddc0c67044b046850c2283096
This commit is contained in:
Xamarin Public Jenkins (auto-signing) 2019-10-04 09:01:11 +00:00
parent 4c26f54a2f
commit 9050bbfc26
51 changed files with 188 additions and 118 deletions

View File

@ -1 +1 @@
37cc903befff71e98631598a26de46eacfdc7aca
e2349164fad4ccd2424944cf6b3605ae76e1f876

View File

@ -1 +1 @@
f1495d076977e40b18b728f5367643e7374a3bc0
1e5e08337bc1443e8611aa9a92c9fd36e0baf00f

View File

@ -402,7 +402,9 @@ namespace IKVM.Reflection
{
return publicKey;
}
byte[] hash = new SHA1Managed().ComputeHash(publicKey);
using (var sha1 = SHA1.Create())
{
byte[] hash = sha1.ComputeHash(publicKey);
byte[] token = new byte[8];
for (int i = 0; i < token.Length; i++)
{
@ -410,6 +412,7 @@ namespace IKVM.Reflection
}
return token;
}
}
internal static string ComputePublicKeyToken(string publicKey)
{

View File

@ -472,7 +472,8 @@ namespace IKVM.Reflection.Emit
private int AddFile(ModuleBuilder manifestModule, string fileName, int flags)
{
SHA1Managed hash = new SHA1Managed();
using (var hash = SHA1.Create())
{
string fullPath = fileName;
if (dir != null)
{
@ -488,6 +489,7 @@ namespace IKVM.Reflection.Emit
}
return manifestModule.__AddModule(flags, Path.GetFileName(fileName), hash.Hash);
}
}
public void AddResourceFile(string name, string fileName)
{

View File

@ -382,7 +382,8 @@ namespace IKVM.Reflection.Writer
private static void StrongName(Stream stream, StrongNameKeyPair keyPair, uint headerLength, uint textSectionFileOffset, uint strongNameSignatureFileOffset, uint strongNameSignatureLength)
{
SHA1Managed hash = new SHA1Managed();
using (var hash = SHA1.Create())
{
using (CryptoStream cs = new CryptoStream(Stream.Null, hash, CryptoStreamMode.Write))
{
stream.Seek(0, SeekOrigin.Begin);
@ -430,6 +431,7 @@ namespace IKVM.Reflection.Writer
stream.Seek(0xD8, SeekOrigin.Begin);
bb.WriteTo(stream);
}
}
internal static void HashChunk(Stream stream, CryptoStream cs, byte[] buf, int length)
{
@ -443,7 +445,8 @@ namespace IKVM.Reflection.Writer
private static Guid GenerateModuleVersionId(Stream stream)
{
SHA1Managed hash = new SHA1Managed();
using (var hash = SHA1.Create())
{
using (CryptoStream cs = new CryptoStream(Stream.Null, hash, CryptoStreamMode.Write))
{
stream.Seek(0, SeekOrigin.Begin);
@ -461,3 +464,4 @@ namespace IKVM.Reflection.Writer
}
}
}
}

View File

@ -41,7 +41,7 @@ static partial class Consts
// Use these assembly version constants to make code more maintainable.
//
public const string MonoVersion = "6.6.0.104";
public const string MonoVersion = "6.6.0.108";
public const string MonoCompany = "Mono development team";
public const string MonoProduct = "Mono Common Language Infrastructure";
public const string MonoCopyright = "(c) Various Mono authors";

View File

@ -1 +1 @@
addab8be965ae9005b32f1e7d936ae29cb4ddcb9
b10ab205f4ddf7ade4f67c298be0e63e3c5f8f21

View File

@ -1 +1 @@
08b71dcc521f5daf8d9ae0ed23c76174fd660f3d
e3f5bd3451532718c09696f79f48473f70fa4fda

View File

@ -1 +1 @@
8fa48a2b7ac8924c42b928ae493daa20f9f7b5fd
3663feb80116629dcca2773e113a1deafac0bce0

View File

@ -1 +1 @@
a5183e89063f54935ac22fc1f71783b278094ec8
327b3da707a9b6f16d9231839094d1ca0765c5f5

View File

@ -1 +1 @@
6432fb38c53b70767df7c23d754f0389dd1c81c2
4bc82e5018b862e746408c4226aaabb48a39c7ce

View File

@ -1 +1 @@
3fc6751cf2f2ec7fdaf7aef8bdc83bf41b164075
7fc65f5a9b87a7c64125074e2dcf74a3ae422bb4

View File

@ -1 +1 @@
e352912f599cf03664d63b0c48185fa3935cb9ce
50c42c6133e6f0da5d405fe88fa3fe18c494d6e7

View File

@ -1 +1 @@
addab8be965ae9005b32f1e7d936ae29cb4ddcb9
b10ab205f4ddf7ade4f67c298be0e63e3c5f8f21

View File

@ -1 +1 @@
08b71dcc521f5daf8d9ae0ed23c76174fd660f3d
e3f5bd3451532718c09696f79f48473f70fa4fda

View File

@ -1 +1 @@
8fa48a2b7ac8924c42b928ae493daa20f9f7b5fd
3663feb80116629dcca2773e113a1deafac0bce0

View File

@ -1 +1 @@
a5183e89063f54935ac22fc1f71783b278094ec8
327b3da707a9b6f16d9231839094d1ca0765c5f5

View File

@ -1 +1 @@
6432fb38c53b70767df7c23d754f0389dd1c81c2
4bc82e5018b862e746408c4226aaabb48a39c7ce

View File

@ -1 +1 @@
3fc6751cf2f2ec7fdaf7aef8bdc83bf41b164075
7fc65f5a9b87a7c64125074e2dcf74a3ae422bb4

View File

@ -1 +1 @@
f96950d184e0aef6f894f376f123130316461e94
130318c7d2a52a90714b422cfad67998f7bb3cf7

Some files were not shown because too many files have changed in this diff Show More