Skip to content

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