We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f52dffd commit 57caad4Copy full SHA for 57caad4
1 file changed
index.js
@@ -410,7 +410,9 @@ Buffer.concat = function concat (list, length) {
410
let buf = list[i]
411
if (isInstance(buf, Uint8Array)) {
412
if (pos + buf.length > buffer.length) {
413
- if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)
+ if (!Buffer.isBuffer(buf)) {
414
+ buf = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength)
415
+ }
416
buf.copy(buffer, pos)
417
} else {
418
Uint8Array.prototype.set.call(
0 commit comments