Fix subscript out of range in test

pull/418/head
Jeffrey Walton 2017-05-11 04:14:13 -04:00
parent ea5d003a9a
commit 34edf7e12f
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 1 additions and 1 deletions

View File

@ -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());