Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buffer() is deprecated due to security and usability issues #14

Open
oza75 opened this issue May 30, 2019 · 2 comments
Open

Buffer() is deprecated due to security and usability issues #14

oza75 opened this issue May 30, 2019 · 2 comments

Comments

@oza75
Copy link

oza75 commented May 30, 2019

(node:9948) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

Node version : v11.15.0

@oza75 oza75 closed this as completed May 30, 2019
@oza75 oza75 reopened this May 30, 2019
@natterstefan
Copy link
Collaborator

natterstefan commented Jun 3, 2019

Thanks @oza75 for your report. I assume this is caused by one of our dependencies (not verified yet). We'll have to take a look at it closely and see if we can update/replace one of those deps.

//cc @DylanPiercey

@lucafornerone
Copy link

lucafornerone commented Sep 10, 2020

The problem is https://www.npmjs.com/package/ip related.
In ip's code (/lib/ip.js) I replaced all 'new Buffer(x)' with 'new Buffer.alloc(x)', now I no longer receive DeprecationWarning message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants