Skip to content
Snippets Groups Projects
Unverified Commit 3fde574d authored by Charles Kerr's avatar Charles Kerr Committed by GitHub
Browse files

fix: -Wunsafe-buffer-usage warnings in url-loader (#43564)

Use v8::ArrayBufferView::CopyContents() instead of doing the pointer
math + memcpy() ourselves. This not only solves the buffer warnings,
but may also avoid some additional overhead:

> Copy the contents of the ArrayBufferView's buffer to an
> embedder defined memory without additional overhead that
> calling ArrayBufferView::Buffer might incur.
parent eff862b0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment