JustasMasiulis / xorstr

heavily vectorized c++17 compile time string encryption.
Apache License 2.0
1.19k stars 193 forks source link

windows7 x64 bug #37

Closed liwei1024 closed 3 years ago

liwei1024 commented 3 years ago

Encrypting strings longer than 15 characters in Windows 7 will crash

int main(int argc, char* argv[]) { //15 normal printf("%s\n", xorstr("000000000000000")); //16 crash printf("%s\n", xorstr("1111111111111111"));

system("pause");

return 0;

}

SpriteOvO commented 3 years ago

Maybe because ur CPU doesn't support AVX instruction. Did u try to define JM_XORSTR_DISABLE_AVX_INTRINSICS macro?

liwei1024 commented 3 years ago

我靠 回复那么快

liwei1024 commented 3 years ago

Maybe because ur CPU doesn't support AVX instruction. Did u try to define JM_XORSTR_DISABLE_AVX_INTRINSICS macro?