0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/doc/api
cjihrig 1e802539b2
buffer: throw when filling with empty buffers
Prior to this commit, Node would enter an infinite loop when
attempting to fill a non-zero length buffer with a zero length
buffer. This commit introduces a thrown exception in this scenario.

PR-URL: https://github.com/nodejs/node/pull/18129
Fixes: https://github.com/nodejs/node/issues/18128
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
2018-01-17 09:05:52 -05:00
..
_toc.md doc: update http URLs to https in doc/api 2017-11-23 16:06:35 -05:00
addons.md doc: add "Hello world" example for N-API 2017-12-08 14:39:52 -05:00
all.md doc: prepare for v8/V8 linting in doc text 2017-11-22 08:24:46 -08:00
assert.md assert: throw without args in ok 2018-01-16 19:57:36 +01:00
async_hooks.md doc: edit for concision 2018-01-03 17:18:30 -08:00
buffer.md buffer: throw when filling with empty buffers 2018-01-17 09:05:52 -05:00
child_process.md child_process: ignore undef/proto values of env 2018-01-15 13:51:11 +01:00
cli.md process: add flag for uncaught exception abort 2017-11-29 15:58:42 +01:00
cluster.md doc: capitalize non-primitive types 2018-01-12 02:51:14 +02:00
console.md console: make .assert standard compliant 2017-12-26 10:46:27 +01:00
crypto.md doc: fix typo 2017-12-28 16:42:46 +01:00
debugger.md
deprecations.md doc: remove double line break 2018-01-16 19:57:36 +01:00
dgram.md doc: decapitalize primitive types 2018-01-12 02:47:22 +02:00
dns.md doc: fix typo in dns.md 2017-12-07 13:49:21 -08:00
documentation.md doc: improve documentation.md 2017-12-18 10:25:43 -05:00
domain.md 2017-10-24, Node.js Version 8.8.0 (Current) 2017-10-24 17:50:44 -04:00
errors.md n-api: throw RangeError napi_create_typedarray() 2018-01-16 15:22:36 -05:00
esm.md doc: fix duplicate words & spellings in docs 2017-12-31 18:14:25 +01:00
events.md 2019-01-10 Version 9.4.0 (Current) 2018-01-10 10:24:22 -05:00
fs.md doc: decapitalize primitive types 2018-01-12 02:47:22 +02:00
globals.md
http2.md doc: fix typo in http2stream.close param default 2018-01-17 08:48:26 +08:00
http.md 2019-01-10 Version 9.4.0 (Current) 2018-01-10 10:24:22 -05:00
https.md 2017-12-12 Version 9.3.0 (Current) 2017-12-12 15:59:29 -05:00
index.md
inspector.md doc: fix duplicate words & spellings in docs 2017-12-31 18:14:25 +01:00
intl.md doc: add missing introduced_in comments 2017-11-19 18:10:05 +01:00
modules.md doc: improve module.builtinModules text 2017-12-27 15:59:48 -08:00
n-api.md doc: napi: make header style consistent 2018-01-16 09:25:06 -08:00
net.md doc: decapitalize primitive types 2018-01-12 02:47:22 +02:00
os.md doc: remove x86 from os.arch() options 2018-01-03 23:31:34 +00:00
path.md 2017-10-31, Version 9.0.0 (Current) 2017-10-31 12:59:12 -07:00
perf_hooks.md perf_hooks,http2: add performance.clear() 2018-01-11 10:41:49 -08:00
process.md doc: add documentation for deprecation properties 2018-01-13 12:08:08 -05:00
punycode.md
querystring.md
readline.md doc: make default values and periods consistent 2017-10-30 11:08:47 +01:00
repl.md doc: edit for concision 2018-01-03 17:18:30 -08:00
stream.md src,doc,test: Fix common misspellings 2018-01-16 23:44:27 +01:00
string_decoder.md
synopsis.md doc: not all example code can be run without 1:1 2017-12-18 10:26:13 -05:00
timers.md
tls.md doc: replace wrong U+00A0 by common spaces 2018-01-02 01:58:15 +02:00
tracing.md doc: add missing introduced_in comments 2017-11-19 18:10:05 +01:00
tty.md doc: adjust TTY wording & add inter-doc links 2017-12-18 10:26:09 -05:00
url.md url: added url fragment lookup table 2017-12-15 09:26:12 -08:00
util.md util: change %o depth default 2018-01-16 15:34:04 +01:00
v8.md doc: fix duplicate words & spellings in docs 2017-12-31 18:14:25 +01:00
vm.md doc: edit for concision 2018-01-03 17:18:30 -08:00
zlib.md 2019-01-10 Version 9.4.0 (Current) 2018-01-10 10:24:22 -05:00