]> git.proxmox.com Git - wasi-libc.git/commit
Add a check to reactor modules to ensure _initialize is only called once (#388)
authorCheng Shao <astrohavoc@gmail.com>
Mon, 30 Jan 2023 12:30:02 +0000 (13:30 +0100)
committerGitHub <noreply@github.com>
Mon, 30 Jan 2023 12:30:02 +0000 (04:30 -0800)
commit9bec2d3aff198770e98544cb6f13add60e1f5fe6
tree777fac0e67a39ba641218fd4769d6bc601504c83
parentb4814997f61ee352d8c1ae397561a813fb30c701
Add a check to reactor modules to ensure _initialize is only called once (#388)

Calling _initialize multiple times is undefined behavior, since the
ctors are not guaranteed to be idempotent. We should have this safety
check which is similar to #329.
libc-bottom-half/crt/crt1-reactor.c