Skip to content

Commit 9223ed2

Browse files
committed
changelog
1 parent ce20f3c commit 9223ed2

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

CHANGELOG.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ unnecessary support tickets for project maintainers.
2424

2525
Some deprecated APIs are even insecure (or at least prone to incorrect usage) which
2626
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).
3335

3436
We also improved some rules to support common patterns in code bases that use
3537
React, JSX, and Flow.

0 commit comments

Comments
 (0)