mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-25 07:05:47 +00:00
Added locking of SecureString, wasn't thread safe
This commit is contained in:
@@ -30,6 +30,8 @@ namespace CryptoExchange.Net
|
||||
}
|
||||
|
||||
public static string GetString(this SecureString source)
|
||||
{
|
||||
lock (source)
|
||||
{
|
||||
string result = null;
|
||||
int length = source.Length;
|
||||
@@ -55,3 +57,4 @@ namespace CryptoExchange.Net
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user