aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv.zig
diff options
context:
space:
mode:
authorDaniel A.C. Martin <github@daniel-martin.co.uk>2023-11-26 16:32:36 +0000
committerAndrew Kelley <andrew@ziglang.org>2023-11-26 21:33:28 -0500
commit280140595fcfe9676ed32a7906eb7958a4c595b1 (patch)
tree8df25bbd8a24970749382cd2aaf4bc092e84c20c /src/codegen/spirv.zig
parentf29302f9152a0c15641596c148a2d784991fe7d8 (diff)
downloadzig-280140595fcfe9676ed32a7906eb7958a4c595b1.tar.gz
zig-280140595fcfe9676ed32a7906eb7958a4c595b1.zip
fix: Prevent segfault when using add.Module()
This duplicates the source file string (as is done in other places such as `addAssemblyFile()`) in order to prevent a segfault when the supplied string is freed by the caller. This is still seen when the caller makes use of a defer statement.
Diffstat (limited to 'src/codegen/spirv.zig')
0 files changed, 0 insertions, 0 deletions