mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-03-23 10:41:06 +08:00
Update source to v6.8.18240.20051
Previous source was actually for 6.1...
This commit is contained in:
@@ -265,6 +265,9 @@ ON_SHA1_Hash ON_SHA1_Hash::StringHash(
|
||||
ON__UINT64& byte_count
|
||||
)
|
||||
{
|
||||
// Do not permit corrupt strings to crash this code.
|
||||
str.IsValid(false);
|
||||
|
||||
return ON_SHA1_Hash::StringHash(
|
||||
static_cast<const wchar_t*>(str),
|
||||
(size_t)str.Length(),
|
||||
@@ -332,6 +335,9 @@ ON_SHA1_Hash ON_SHA1_Hash::StringHash(
|
||||
ON__UINT64& byte_count
|
||||
)
|
||||
{
|
||||
// Do not permit corrupt strings to crash this code.
|
||||
str.IsValid(false);
|
||||
|
||||
return ON_SHA1_Hash::StringHash(
|
||||
static_cast<const char*>(str),
|
||||
(size_t)str.Length(),
|
||||
|
||||
Reference in New Issue
Block a user