You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
It was always possible to create Buffer from any array-like object using http://nodejs.org/docs/v0.11.6/api/buffer.html#buffer_new_buffer_array and much code expects that behavior. In general, this technique still works, but not for new Buffer(anotherBufferInstance, ...args...) call - such call corrupts data in both original and resulting buffers.
Of course, I can workaround it in my code by checking instance of source data and using slice method specially for Buffer, but that looks like a serious bug that can cause data corruption in other projects as well.