Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix illegal memory reference in bun link #2147

Merged
merged 1 commit into from
Feb 24, 2023

Conversation

alexlamsl
Copy link
Contributor

No description provided.

@Jarred-Sumner Jarred-Sumner merged commit 5929dae into oven-sh:main Feb 24, 2023
@Jarred-Sumner
Copy link
Collaborator

Thank you

),
.global => brk: {
var path: [bun.MAX_PATH_BYTES]u8 = undefined;
std.mem.copy(u8, &path, non_normalized_path);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the future we should use bun.copy or @memcpy because std.mem.copy is slow

@alexlamsl alexlamsl deleted the link-segfault branch February 24, 2023 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants