mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-22 11:39:33 +00:00
Fix RandomX crash when compiled with fortify_source
This commit is contained in:
parent
e65e283aac
commit
f6c50b5393
4 changed files with 4 additions and 4 deletions
|
@ -1078,6 +1078,6 @@ void JitCompilerA64::h_NOP(Instruction& instr, uint32_t& codePos)
|
|||
{
|
||||
}
|
||||
|
||||
InstructionGeneratorA64 JitCompilerA64::engine[256] = {};
|
||||
InstructionGeneratorA64 JitCompilerA64::engine[257] = {};
|
||||
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ namespace randomx {
|
|||
void enableWriting() const;
|
||||
void enableExecution() const;
|
||||
|
||||
static InstructionGeneratorA64 engine[256];
|
||||
static InstructionGeneratorA64 engine[257];
|
||||
|
||||
private:
|
||||
const bool hugePages;
|
||||
|
|
|
@ -1443,6 +1443,6 @@ namespace randomx {
|
|||
emitByte(0x90, code, codePos);
|
||||
}
|
||||
|
||||
alignas(64) InstructionGeneratorX86 JitCompilerX86::engine[256] = {};
|
||||
alignas(64) InstructionGeneratorX86 JitCompilerX86::engine[257] = {};
|
||||
|
||||
}
|
||||
|
|
|
@ -81,7 +81,7 @@ namespace randomx {
|
|||
void enableWriting() const;
|
||||
void enableExecution() const;
|
||||
|
||||
alignas(64) static InstructionGeneratorX86 engine[256];
|
||||
alignas(64) static InstructionGeneratorX86 engine[257];
|
||||
|
||||
private:
|
||||
int registerUsage[RegistersCount] = {};
|
||||
|
|
Loading…
Reference in a new issue