]> zoso.dev Git - buffer.git/commit
Treat `=` as end of Base64 encoded string
authorVolker Mische <volker.mische@gmail.com>
Thu, 18 Jan 2018 23:39:03 +0000 (00:39 +0100)
committerVolker Mische <volker.mische@gmail.com>
Thu, 18 Jan 2018 23:39:03 +0000 (00:39 +0100)
commitf15c39357930c109ed32695d1343ca09ffa5ed4f
tree379d7916654f02c41206a2e90b162b0970d565be
parent4fd1350de934aadbbf4979814807388082d906fb
Treat `=` as end of Base64 encoded string

Node.js treats an equal sign as the end of a Base64 encoded string.
Hence `Buffer.from('=bad')` results in an empty string.
index.js
test/node/test-buffer-alloc.js