0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-22 07:37:56 +01:00
nodejs/lib
Gerhard Stoebich aa34465ae3 buffer: add type check in bidirectionalIndexOf
Add a type check in bidirectionalIndexOf to avoid using something else
as Buffer. This may happen if e.g. lastIndexOf is called with invalid
this.

PR-URL: https://github.com/nodejs/node/pull/32770
Fixes: https://github.com/nodejs/node/issues/32753
Fixes: https://github.com/nodejs/node/issues/32747
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
2020-04-13 23:22:09 +02:00
..
fs fs: add fs/promises alias module 2020-02-18 22:15:50 -08:00
internal util: change default value of maxStringLength to 10000 2020-04-13 19:46:35 +02:00
_http_agent.js http: move free socket error handling to agent 2020-03-30 10:25:03 +02:00
_http_client.js http: fix incorrect headersTimeout measurement 2020-04-02 14:50:20 +02:00
_http_common.js http: fix incorrect headersTimeout measurement 2020-04-02 14:50:20 +02:00
_http_incoming.js stream: make readable & writable computed 2020-02-08 23:23:12 +01:00
_http_outgoing.js http: don't emit 'finish' after 'error' 2020-03-18 13:09:26 +01:00
_http_server.js http: fix incorrect headersTimeout measurement 2020-04-02 14:50:20 +02:00
_stream_duplex.js stream: align stream.Duplex with net.Socket 2020-03-25 15:20:22 +01:00
_stream_passthrough.js lib: flatten access to primordials 2019-11-25 10:28:15 +01:00
_stream_readable.js stream: use callback to properly propagate error 2020-04-03 19:00:28 +02:00
_stream_transform.js stream: change var to let/const in stream files 2020-03-30 10:25:41 +02:00
_stream_wrap.js lib: assign missed deprecation code 2019-03-07 15:48:55 +01:00
_stream_writable.js stream: use callback to properly propagate error 2020-04-03 19:00:28 +02:00
_tls_common.js tls: for...of in _tls_common.js 2019-12-17 08:11:13 -05:00
_tls_wrap.js net: make readable/writable start as true 2020-03-24 09:45:25 +01:00
.eslintrc.yaml lib: replace BigInt64Array global by the primordials 2020-01-13 12:42:21 +01:00
assert.js Revert "assert: fix line number calculation after V8 upgrade" 2020-03-18 16:35:41 -07:00
async_hooks.js async_hooks: merge run and exit methods 2020-04-13 18:37:44 +02:00
buffer.js buffer: add type check in bidirectionalIndexOf 2020-04-13 23:22:09 +02:00
child_process.js lib: replace use of Error with primordials 2020-01-04 14:50:18 -08:00
cluster.js
console.js console: split console into global.js and constructor.js 2018-12-02 04:51:18 +08:00
constants.js lib: flatten access to primordials 2019-11-25 10:28:15 +01:00
crypto.js tls: provide default cipher list from command line 2020-04-13 18:48:23 +02:00
dgram.js lib: move isLegalPort to validators, refactor 2020-03-05 11:52:53 -08:00
dns.js dns: remove duplicate code 2020-04-07 20:35:07 +02:00
domain.js lib: replace Map global by the primordials 2020-01-04 14:56:52 -08:00
events.js events: fix removeListener for Symbols 2020-03-07 10:47:12 -08:00
fs.js fs: make parameters optional for readSync 2020-04-02 18:34:31 +02:00
http2.js http2: order declarations in http2.js 2018-11-20 10:42:31 -08:00
http.js lib: flatten access to primordials 2019-11-25 10:28:15 +01:00
https.js https: prevent options object from being mutated 2020-01-03 20:09:27 -08:00
inspector.js lib: replace Map global by the primordials 2020-01-04 14:56:52 -08:00
module.js module: add API for interacting with source maps 2020-01-14 12:39:06 -08:00
net.js net: autoDestroy Socket 2020-04-02 23:38:32 +02:00
os.js src: create a getter for kernel version 2020-03-09 12:44:16 +01:00
path.js path: replace var with let in lib/path.js 2019-11-09 08:44:29 -08:00
perf_hooks.js perf_hooks: allow omitted parameters in 'performance.measure' 2020-04-10 18:08:30 +08:00
process.js
punycode.js lib: use strict equality comparison 2019-12-14 08:57:36 -05:00
querystring.js lib: enforce use of Array from primordials 2019-11-27 19:29:01 +01:00
readline.js readline: remove intermediate variable 2020-02-09 11:06:07 -05:00
repl.js repl: fixup error message 2020-03-27 15:59:43 +01:00
stream.js stream: simplify uint8ArrayToBuffer helper 2019-10-22 13:37:59 -05:00
string_decoder.js lib: replace Symbol global by the primordials Symbol 2019-12-08 13:38:58 +01:00
sys.js benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
timers.js timers: fix refresh for expired timers 2019-12-25 12:45:24 +01:00
tls.js tls: provide default cipher list from command line 2020-04-13 18:48:23 +02:00
trace_events.js lib: replace Set global by the primordials 2020-01-04 12:41:09 -08:00
tty.js lib: use static Number properties from primordials 2019-11-30 13:45:38 +01:00
url.js url: declare iterator inside loop 2019-12-11 16:38:06 -06:00
util.js lib: replace use of Error with primordials 2020-01-04 14:50:18 -08:00
v8.js worker: add ability to take heap snapshot from parent thread 2020-02-03 07:04:13 -08:00
vm.js vm: implement vm.measureMemory() for per-context memory measurement 2020-02-26 17:52:39 +08:00
wasi.js wasi: clean up options validation 2020-03-30 17:22:22 +02:00
worker_threads.js worker: allow specifying resource limits 2019-11-05 19:57:13 +01:00
zlib.js zlib: align with streams 2020-03-19 10:56:45 +01:00