File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,14 @@ unnecessary support tickets for project maintainers.
24
24
25
25
Some deprecated APIs are even insecure (or at least prone to incorrect usage) which
26
26
can have serious security implications. For that reason, ` standard ` now prevents
27
- usage of ` Buffer(num) ` or ` new Buffer(num) ` since these functions return uninitialized
28
- program memory which could contain private user information, secret keys, etc.
29
- Instead of ` Buffer(num) ` use the new ` Buffer.alloc(num) ` or ` Buffer.from(obj) `
30
- functions which make programmer intent clearer and work in all currently supported
31
- versions of Node.js, including Node.js 4.x. For more background,
32
- [ see this Node.js issue] ( https://github.com/nodejs/node/issues/4660 ) .
27
+ usage of ` Buffer(num) ` or ` new Buffer(num) ` since these functions return
28
+ uninitialized program memory which could contain private user information or
29
+ confidential secret keys.
30
+
31
+ Instead of ` Buffer(num) ` , consider using ` Buffer.alloc(num) ` or ` Buffer.from(obj) `
32
+ which make the programmer intention much clearer. These new functions exist in all
33
+ currently supported versions of Node.js, including Node.js 4.x. For more
34
+ background, [ see this Node.js issue] ( https://github.com/nodejs/node/issues/4660 ) .
33
35
34
36
We also improved some rules to support common patterns in code bases that use
35
37
React, JSX, and Flow.
You can’t perform that action at this time.
0 commit comments