diff options
author | Mike Buland <eichlan@xagasoft.com> | 2023-07-01 11:06:22 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2023-07-01 11:06:22 -0700 |
commit | fd7583acc0adcce2fa63d21755091ddb3077aa14 (patch) | |
tree | d2c7b019c4ff994b9347141a54a83cc8bffee667 /src/test | |
parent | a655bb28194bcea9efc2550d9c41c422c05ce762 (diff) | |
download | libbu++-fd7583acc0adcce2fa63d21755091ddb3077aa14.tar.gz libbu++-fd7583acc0adcce2fa63d21755091ddb3077aa14.tar.bz2 libbu++-fd7583acc0adcce2fa63d21755091ddb3077aa14.tar.xz libbu++-fd7583acc0adcce2fa63d21755091ddb3077aa14.zip |
Fixed potential memory corruption/race condition.
Diffstat (limited to '')
-rw-r--r-- | src/tests/utf.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/utf.cpp b/src/tests/utf.cpp index 40d4194..ef7297d 100644 --- a/src/tests/utf.cpp +++ b/src/tests/utf.cpp | |||
@@ -7,6 +7,7 @@ using namespace Bu; | |||
7 | 7 | ||
8 | int main() | 8 | int main() |
9 | { | 9 | { |
10 | sio << "Code: " << Bu::__calcHashCode( Bu::UtfString() ) << sio.nl; | ||
10 | sio << "Code: " << Bu::__calcHashCode( Bu::UtfString("Hello there") ) | 11 | sio << "Code: " << Bu::__calcHashCode( Bu::UtfString("Hello there") ) |
11 | << sio.nl; | 12 | << sio.nl; |
12 | 13 | ||