sodium-javascript/test/fixtures/mprotect_noaccess.js

7 lines
154 B
JavaScript
Raw Normal View History

/* eslint-disable */
const sodium = require('../..')
const buf = sodium.sodium_malloc(1)
sodium.sodium_mprotect_noaccess(buf)
buf[0]
process.send('read')