src: fix startup snapshot reproducibility of InternalFieldInfo · nodejs/node@6db3f66 · GitHub
Skip to content

Commit 6db3f66

Browse files
legendecasaduh95
authored andcommitted
src: fix startup snapshot reproducibility of InternalFieldInfo
`memset` before a placement `new` can be optimized away by GCC due to lifetime analysis. This causes the buffer in the startup snapshot vulnerable to ASLR. Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net> PR-URL: #65684 Fixes: #65508 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com>
1 parent cbd0948 commit 6db3f66

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/node_snapshotable.h‎

Lines changed: 4 additions & 1 deletion

0 commit comments

Comments
 (0)