aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-01-19 16:14:40 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-01-19 16:14:40 -0800
commit9bcd4952ce3b3051d1f432810d0a9f8a17e3db92 (patch)
tree5e8a3f7c096e7f6d78ff9e3f4ce8596e7de0896a /src
parent8745f10cd3ac16815f5528c0d87606c56b1367c7 (diff)
downloadbun-9bcd4952ce3b3051d1f432810d0a9f8a17e3db92.tar.gz
bun-9bcd4952ce3b3051d1f432810d0a9f8a17e3db92.tar.zst
bun-9bcd4952ce3b3051d1f432810d0a9f8a17e3db92.zip
Fix UAF when opening workspaces
Diffstat (limited to 'src')
-rw-r--r--src/install/lockfile.zig2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/install/lockfile.zig b/src/install/lockfile.zig
index c0617d215..be56f56f1 100644
--- a/src/install/lockfile.zig
+++ b/src/install/lockfile.zig
@@ -2730,8 +2730,6 @@ pub const Package = extern struct {
defer workspace_allocator.free(workspace_bytes);
const workspace_source = logger.Source.initPathString(path, workspace_bytes);
- initializeStore();
-
var workspace_json = try json_parser.PackageJSONVersionChecker.init(allocator, &workspace_source, log);
_ = try workspace_json.parseExpr();