Skip to content
New issue

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

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

Already on GitHub? # to your account

fix crash in js_typed_array_slice caused by memory overlap #379

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
47 checks passed
# for free to join this conversation on GitHub. Already have an account? # 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