Merge pull request #1073 from SChernykh/dev

Correct buffer size for fillAes4Rx4
This commit is contained in:
xmrig 2019-07-26 08:12:23 +07:00 committed by GitHub
commit 11614c287f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,7 +121,7 @@ namespace randomx {
template<bool softAes> template<bool softAes>
void VmBase<softAes>::generateProgram(void* seed) { void VmBase<softAes>::generateProgram(void* seed) {
fillAes4Rx4<softAes>(seed, sizeof(program), &program); fillAes4Rx4<softAes>(seed, 128 + RandomX_CurrentConfig.ProgramSize * 8, &program);
} }
template class VmBase<false>; template class VmBase<false>;