ref: 2ec10012b6633f5e23012330fd5faddcfea490b8
parent: e56c6cc2918003f404edfd7c8575c0ab343ba2da
author: ISSOtm <eldredhabert0@gmail.com>
date: Tue Jul 28 17:50:43 EDT 2020
Fix mmap read offset not being initialized
--- a/src/asm/lexer.c
+++ b/src/asm/lexer.c
@@ -324,6 +324,7 @@
state->isMmapped = true;
state->ptr = pa;
state->size = size;
+ state->offset = 0;
if (verbose)
printf("File %s successfully mmap()ped\n", path);