mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
ed92b1fdaf
fix: #46559 OSX will raise both SIGBUS and SIGSEGV when out of bound memory visit, This commit set sigaction in OSX for two signals to handle this. PR-URL: https://github.com/nodejs/node/pull/46561 Fixes: https://github.com/nodejs/node/issues/46559 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
17 lines
214 B
Plaintext
17 lines
214 B
Plaintext
(module
|
|
(type $none_=>_none (func))
|
|
(memory $0 1)
|
|
(export "_start" (func $_start))
|
|
(func $_start
|
|
memory.size
|
|
i32.const 64
|
|
i32.mul
|
|
i32.const 1024
|
|
i32.mul
|
|
i32.const 3
|
|
i32.sub
|
|
i32.load
|
|
drop
|
|
)
|
|
)
|