node-ioctl
node-ioctl copied to clipboard
malloc(): memory corruption
Whenever I try to read the fb_fix_screeninfo
, node.js crashes and says malloc(): memory corruption
. My fb_fix_screeninfo
structure looks like:
StructType({
id: ArrayType(ref.types.char,16),
smem_start: ref.types.ulong,
smem_len: ref.types.uint,
type: ref.types.uint,
type_aux: ref.types.uint,
visual: ref.types.uint,
xpanstep: ref.types.ushort,
ypanstep: ref.types.ushort,
line_length: ref.types.uint,
mmio_start: ref.types.ulong,
mmio_len: ref.types.uint,
accel: ref.types.uint,
capabilities: ref.types.ushort,
reserved: ArrayType(ref.types.ushort,2)
})