diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-05-11 04:14:13 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-05-11 04:14:13 -0400 |
commit | 34edf7e12f57ae619098de12ec43fda6de91e8de (patch) | |
tree | fe441ef5d48b6954381f04f295e76eb9fab9e15f /validat0.cpp | |
parent | ea5d003a9a9c10918171c1df90efe645922a66b2 (diff) | |
download | cryptopp-git-34edf7e12f57ae619098de12ec43fda6de91e8de.tar.gz |
Fix subscript out of range in test
Diffstat (limited to 'validat0.cpp')
-rw-r--r-- | validat0.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/validat0.cpp b/validat0.cpp index e3db4b73..b3bb80e5 100644 --- a/validat0.cpp +++ b/validat0.cpp @@ -262,7 +262,7 @@ bool TestCompressors() for (unsigned int i=0; i<128; i++)
{
std::string src, dest;
- unsigned int len = GlobalRNG().GenerateWord32(0, 0xfff);
+ unsigned int len = GlobalRNG().GenerateWord32(8, 0xfff);
src.resize(len);
GlobalRNG().GenerateBlock(reinterpret_cast<byte*>(&src[0]), src.size());
|