Commit 7555dee 1 parent 274eff5 commit 7555dee Copy full SHA for 7555dee
File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -111,13 +111,13 @@ added: v5.10.0
111
111
-->
112
112
113
113
Node.js can be started using the ` --zero-fill-buffers ` command line option to
114
- force all newly allocated ` Buffer ` instances created using either
115
- ` new Buffer(size) ` , [ ` Buffer.allocUnsafe() ` ] , [ ` Buffer.allocUnsafeSlow() ` ] or
116
- ` new SlowBuffer(size) ` to be * automatically zero-filled * upon creation. Use of
117
- this flag * changes the default behavior * of these methods and * can have a significant
118
- impact * on performance. Use of the ` --zero-fill-buffers ` option is recommended
119
- only when necessary to enforce that newly allocated ` Buffer ` instances cannot
120
- contain old data that is potentially sensitive.
114
+ cause all newly allocated ` Buffer ` instances to be zero-filled upon creation by
115
+ default, including buffers returned by ` new Buffer(size) ` ,
116
+ [ ` Buffer.allocUnsafe() ` ] , [ ` Buffer.allocUnsafeSlow() ` ] , and `new
117
+ SlowBuffer(size)`. Use of this flag can have a significant negative impact on
118
+ performance. Use of the ` --zero-fill-buffers ` option is recommended only when
119
+ necessary to enforce that newly allocated ` Buffer ` instances cannot contain old
120
+ data that is potentially sensitive.
121
121
122
122
``` txt
123
123
$ node --zero-fill-buffers
You can’t perform that action at this time.
0 commit comments