diff options
| author | Daniel A.C. Martin <github@daniel-martin.co.uk> | 2023-11-26 16:32:36 +0000 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-11-26 21:33:28 -0500 |
| commit | 280140595fcfe9676ed32a7906eb7958a4c595b1 (patch) | |
| tree | 8df25bbd8a24970749382cd2aaf4bc092e84c20c /src/codegen | |
| parent | f29302f9152a0c15641596c148a2d784991fe7d8 (diff) | |
| download | zig-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')
0 files changed, 0 insertions, 0 deletions
