diff --git a/lib/buffer.js b/lib/buffer.js index a0210b9b876..c23adb502e4 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -250,6 +250,7 @@ function Buffer(subject, encoding, offset) { this.parent = pool; this.offset = pool.used; pool.used += this.length; + if (pool.used & 7) pool.used = (pool.used + 8) & ~7; } // Treat array-ish objects as a byte array.