aboutsummaryrefslogtreecommitdiff
path: root/executor/x86_64
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-08-22 00:59:49 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commitd6f368a3f400fea3e89280262a8147e7ce5d855c (patch)
tree4eb64eb0d18dad1e40c70a5bff974fe8033fe389 /executor/x86_64
parentdf640dc7f55fef962b598562e10d8dd4d60fedc0 (diff)
Move thread work from compiler/parser to thread_work file, fix use after free bug in multithreaded parser allocator
Diffstat (limited to 'executor/x86_64')
-rw-r--r--executor/x86_64/asm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/x86_64/asm.c b/executor/x86_64/asm.c
index 606e539..c741f15 100644
--- a/executor/x86_64/asm.c
+++ b/executor/x86_64/asm.c
@@ -315,7 +315,7 @@ static void asm_rm(Asm *self, AsmPtr *mem, Reg64 reg) {
}
*self->code_it++ = (reg << 3) | rm_byte;
- /* RSP requires SIB byte when displacement is not 0 */
+ /* RSP requires SIB byte */
if(mem->base == RSP)
*self->code_it++ = 0x24;
}