| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 49864d1 commit cd30dbb
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -123,15 +123,12 @@ added: v5.10.0 | |||
| 123 | 123 | --> | |
| 124 | 124 | ||
| 125 | 125 | Node.js can be started using the `--zero-fill-buffers` command line option to | |
| 126 | - cause all newly allocated `Buffer` instances to be zero-filled upon creation by | ||
| 127 | - default. Before Node.js 8.0.0, this included buffers allocated by `new | ||
| 128 | - Buffer(size)`. Since Node.js 8.0.0, buffers allocated with `new` are always | ||
| 129 | - zero-filled, whether this option is used or not. | ||
| 130 | - [`Buffer.allocUnsafe()`][], [`Buffer.allocUnsafeSlow()`][], and `new | ||
| 131 | - SlowBuffer(size)`. Use of this flag can have a significant negative impact on | ||
| 132 | - performance. Use of the `--zero-fill-buffers` option is recommended only when | ||
| 133 | - necessary to enforce that newly allocated `Buffer` instances cannot contain old | ||
| 134 | - data that is potentially sensitive. | ||
| 126 | + cause all newly-allocated `Buffer` instances to be zero-filled upon creation by | ||
| 127 | + default. Without the option, buffers created with [`Buffer.allocUnsafe()`][], | ||
| 128 | + [`Buffer.allocUnsafeSlow()`][], and `new SlowBuffer(size)` are not zero-filled. | ||
| 129 | + Use of this flag can have a significant negative impact on performance. Use the | ||
| 130 | + `--zero-fill-buffers` option only when necessary to enforce that newly allocated | ||
| 131 | + `Buffer` instances cannot contain old data that is potentially sensitive. | ||
| 135 | 132 | ||
| 136 | 133 | ```console | |
| 137 | 134 | $ node --zero-fill-buffers | |
| Back | FazBrowse Home | New Git URL |
0 commit comments