Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix buffer initialization for Base64 encoding (#75)
commit 3827da752d3b2eb86613b92ffb6715806d799fdc Author: Marius <maerious@gmail.com> Date: Tue May 30 21:31:26 2017 +0200 Transpile changes commit 025aac69f827e6c0f51215609070bab6b76cc491 Author: Marius <maerious@gmail.com> Date: Tue May 30 21:30:41 2017 +0200 Add test for number metadata commit 35b470af8386ff96230e09408a3ba83c6831b3a0 Merge: 902e4bf 74e4500 Author: Marius <maerious@gmail.com> Date: Tue May 30 21:26:52 2017 +0200 Merge branch 'fix/buffer-leak' of https://github.com/goto-bus-stop/tus-js-client into buffer commit 74e4500 Author: Renée Kooi <renee@kooi.me> Date: Tue May 30 17:18:44 2017 +0200 fix lint commit a420570 Author: Renée Kooi <renee@kooi.me> Date: Tue May 30 15:43:13 2017 +0200 fix buffer initialization in base64 encoding If a number was passed to `encode()`, the buffer would be created with uninitialised memory. This patch casts anything that's passed in to a string first and then uses the safe `Buffer.from` API. `Buffer.from` was added in Node v4 but the `buffer-from` module ponyfills it for older Node versions. See [nodejs/node#4660](nodejs/node#4660)
- Loading branch information