Closed ghost closed 8 months ago
the issue seems to be related to shared read/write file mappings on emscripten, which is currently buggy (but mmap isn't really supported by wasi or anything, so i think its fair)
if the original fd (used to create file mapping) is closed before munmap, munmap will fail and any changes to the mapped memory view will be lost
hexpatch doesn't seem to change the input file at all