Skip to content

fix crash in js_typed_array_slice caused by memory overlap #379

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

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

pandazyp
Copy link
Contributor

Use memmove instead of memcpy for safe.

Fixes: #378

@saghul
Copy link
Contributor

saghul commented Apr 14, 2024

Cn you add a test please?

@pandazyp
Copy link
Contributor Author

Cn you add a test please?

Ok, I added the test in test_builtin.js.

@saghul
Copy link
Contributor

saghul commented Apr 14, 2024

Excellent!

Use memmove instead of memcpy for safe.

Fixes: quickjs-ng#378
@chqrlie chqrlie merged commit 8dcdb92 into quickjs-ng:master Apr 15, 2024
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.

Crash in js_typed_array_slice when compile quickjs with asan.
3 participants