js code to reproduce:
...
const mmap = require("mmap-io")
const fd = ... // openSync, ftruncateSync, etc
const buf = mmap.map(mmap.PAGESIZE, mmap.PROT_WRITE | mmap.PROT_READ, mmap.MAP_SHARED, fd, 0x80000000);
console.log(buf); // will cause bus error;
...
The possible reason is the use of int:
|
const size_t offset = static_cast<size_t>(get_v<int>(info[4], 0)); |
js code to reproduce:
The possible reason is the use of
int:mmap-io/src/mmap-io.cc
Line 124 in c751580