summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-04-02 00:01:29 +0200
committerRuben Bridgewater <ruben@bridgewater.de>2019-04-15 17:21:34 +0200
commit693401d0ddd752e5fa47b882e56e252c42c94c0e (patch)
treefadabceddc0df7bd8d982bcd6c00cc11f3565e5d /doc/api
parent2fed83dee884c3bddafa67bb53abf507db1a8ba3 (diff)
downloadandroid-node-v8-693401d0ddd752e5fa47b882e56e252c42c94c0e.tar.gz
android-node-v8-693401d0ddd752e5fa47b882e56e252c42c94c0e.tar.bz2
android-node-v8-693401d0ddd752e5fa47b882e56e252c42c94c0e.zip
buffer: use stricter range checks
This validates the input to make sure the arguments do not overflow. Before, if the input would overflow, it would cause the write to be performt in the wrong spot / result in unexpected behavior. Instead, just use a strict number validation. PR-URL: https://github.com/nodejs/node/pull/27045 Fixes: https://github.com/nodejs/node/issues/27043 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/errors.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/api/errors.md b/doc/api/errors.md
index 547d1ff8d2..e984487820 100644
--- a/doc/api/errors.md
+++ b/doc/api/errors.md
@@ -1564,12 +1564,6 @@ OpenSSL crypto support.
An attempt was made to use features that require [ICU][], but Node.js was not
compiled with ICU support.
-<a id="ERR_NO_LONGER_SUPPORTED"></a>
-### ERR_NO_LONGER_SUPPORTED
-
-A Node.js API was called in an unsupported manner, such as
-`Buffer.write(string, encoding, offset[, length])`.
-
<a id="ERR_OUT_OF_RANGE"></a>
### ERR_OUT_OF_RANGE
@@ -2096,6 +2090,12 @@ removed: v10.0.0
Used by the `N-API` when `Constructor.prototype` is not an object.
+<a id="ERR_NO_LONGER_SUPPORTED"></a>
+### ERR_NO_LONGER_SUPPORTED
+
+A Node.js API was called in an unsupported manner, such as
+`Buffer.write(string, encoding, offset[, length])`.
+
<a id="ERR_OUTOFMEMORY"></a>
### ERR_OUTOFMEMORY
<!-- YAML