aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-09-07 22:05:01 +0300
committerVeikka Tuominen <git@vexu.eu>2022-09-08 00:37:11 +0300
commit99826a2ba89ccd80caaa4eeb47c59a71ddfe76b6 (patch)
tree1e769aff2edca88474f60f28846da7a4a62e18f0 /src/codegen/llvm.zig
parent37afab2addab5809e1419a09e3be5ea4f3ee5501 (diff)
downloadzig-99826a2ba89ccd80caaa4eeb47c59a71ddfe76b6.tar.gz
zig-99826a2ba89ccd80caaa4eeb47c59a71ddfe76b6.zip
Sema: fix UAF in zirClosureGet
Previously if a decl failed its capture scope would be deallocated and set to undefined which would then lead to invalid dereference in `zirClosureGet`. To avoid this set the capture scope to a special failed state and fail the current decl with dependency failure if the failed state is encountered in `zirClosureGet`. Closes #12433 Closes #12530 Closes #12593
Diffstat (limited to 'src/codegen/llvm.zig')
0 files changed, 0 insertions, 0 deletions