node/test/sequential
Anna Henningsen be103eba41 src: re-add Realloc() shrink after reading stream data
This would otherwise keep a lot of unused memory lying around,
and in particular add up to a page per chunk of memory overhead
for network reads, potentially opening a DoS vector if the resulting
`Buffer` objects are kept around indefinitely (e.g. stored in a list
and not concatenated until the socket finishes).

This fixes CVE-2018-7164.

Refs: https://github.com/nodejs-private/security/issues/186
Refs: 7c4b09b24b
PR-URL: https://github.com/nodejs-private/node-private/pull/129
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
2018-06-12 13:51:10 -05:00
..
sequential.status test: fix flaky test-http2-ping-flood 2018-03-20 11:49:41 +00:00
test-async-wrap-getasyncid.js test: fix buggy getTTYfd() implementation 2018-03-24 12:02:07 +01:00
test-benchmark-buffer.js test: reduce benchmark test run time 2018-02-21 14:20:30 -05:00
test-benchmark-child-process.js test: create shared runBenchmark function 2017-09-11 11:26:15 -04:00
test-benchmark-http.js benchmark: implement duration in http test double 2018-01-30 14:25:43 -06:00
test-benchmark-net.js test: create shared runBenchmark function 2017-09-11 11:26:15 -04:00
test-benchmark-tls.js test: add crypto check to test-benchmark-tls 2018-02-21 14:20:20 -05:00
test-buffer-creation-regression.js test: simplify test skipping 2017-07-04 12:41:49 +03:00
test-child-process-emfile.js test: simplify test skipping 2017-07-04 12:41:49 +03:00
test-child-process-execsync.js test: remove assert.doesNotThrow() 2018-03-21 10:50:02 +00:00
test-child-process-exit.js test: rename tests to remove "regress" keyword 2018-03-20 11:33:47 +00:00
test-child-process-fork-getconnections.js lib,src: fix consistent spacing inside braces 2017-07-21 15:13:47 -04:00
test-child-process-pass-fd.js test: fix flaky test-child-process-pass-fd 2018-01-08 02:20:02 -05:00
test-cluster-inspect-brk.js test: skipIfInspectorDisabled cluster-inspect-brk 2017-05-02 07:50:16 +02:00
test-cluster-send-handle-large-payload.js test: fix test-cluster-send-handle-large-payload 2018-03-20 11:34:05 +00:00
test-crypto-timing-safe-equal.js crypto: migrate timingSafeEqual to internal/errors 2017-10-26 07:47:16 -07:00
test-debug-prompt.js test: refactor test-debug-prompt 2017-09-13 17:12:57 -03:00
test-debugger-debug-brk.js test: added a test comment 2017-10-11 22:55:15 -07:00
test-debugger-repeat-last.js test: continue normalizing fixtures use 2017-08-27 21:14:34 -03:00
test-deprecation-flags.js test: use fixtures module over fixturesDir 2017-10-15 00:04:54 +08:00
test-dgram-bind-shared-ports.js test: adjust indentation for stricter linting 2017-07-27 09:24:20 -07:00
test-dgram-implicit-bind-failure.js test: move common.PORT tests to sequential 2017-09-10 23:56:30 -03:00
test-dgram-pingpong.js test: reduce string concatenations 2017-05-05 17:39:05 +03:00
test-fs-readfile-tostring-fail.js test: refactor test-fs-readfile-tostring-fail 2018-03-22 16:41:06 +00:00
test-fs-stat-sync-overflow.js test: address nits and rename the corresponding fixture 2018-03-20 11:33:47 +00:00
test-fs-watch-file-enoent-after-deletion.js test: rename tests to remove "regress" keyword 2018-03-20 11:33:47 +00:00
test-fs-watch.js test: remove assert.doesNotThrow() 2018-03-21 10:50:02 +00:00
test-http-econnrefused.js test: rename test-regress-GH-784.js 2018-03-20 11:33:48 +00:00
test-http-keep-alive-large-write.js net,src: refactor writeQueueSize tracking 2018-02-20 16:02:30 -05:00
test-http-keepalive-maxsockets.js test: move test-http-keepalive-maxsockets to sequential 2017-11-13 07:59:34 -06:00
test-http-max-sockets.js test: rename test-regress-GH-877.js 2018-03-20 11:33:48 +00:00
test-http-regr-gh-2928.js test: s/assert.equal/assert.strictEqual/ 2017-01-11 14:19:26 +00:00
test-http-server-consumed-timeout.js test: remove undefined function 2018-01-09 04:32:37 -05:00
test-http-server-keep-alive-timeout-slow-client-headers.js test: move timing-dependent tests to sequential 2017-07-22 07:53:27 +03:00
test-http-server-keep-alive-timeout-slow-server.js test: move timing-dependent tests to sequential 2017-07-22 07:53:27 +03:00
test-http2-max-session-memory.js http2: refer to stream errors by name 2018-03-30 15:17:15 +02:00
test-http2-ping-flood.js test: fix flaky test-http2-ping-flood 2018-03-20 11:49:41 +00:00
test-http2-session-timeout.js http2: cleanup Http2Stream/Http2Session destroy 2018-01-10 01:42:15 -05:00
test-http2-settings-flood.js test: fix flaky test-http2-settings-flood 2018-03-20 11:49:36 +00:00
test-http2-timeout-large-write-file.js test: move tmpdir to submodule of common 2018-02-21 10:18:51 -05:00
test-http2-timeout-large-write.js http2: cleanup Http2Stream/Http2Session destroy 2018-01-10 01:42:15 -05:00
test-https-keep-alive-large-write.js net,src: refactor writeQueueSize tracking 2018-02-20 16:02:30 -05:00
test-https-server-keep-alive-timeout.js test: move timing-sensitive test to sequential 2017-12-11 17:16:53 -05:00
test-init.js test,benchmark,doc: enable dot-notation rule 2018-02-21 18:12:26 -05:00
test-inspector-async-call-stack-abort.js src: fix inspector nullptr deref on abrupt exit 2017-12-21 13:48:33 -05:00
test-inspector-async-call-stack.js inspector: track async stacks when necessary 2017-10-29 09:38:37 -07:00
test-inspector-async-hook-setup-at-inspect-brk.js inspector: --inspect-brk for es modules 2018-02-21 10:18:42 -05:00
test-inspector-async-hook-setup-at-signal.js inspector: --inspect-brk for es modules 2018-02-21 10:18:42 -05:00
test-inspector-async-stack-traces-promise-then.js inspector: --inspect-brk for es modules 2018-02-21 10:18:42 -05:00
test-inspector-async-stack-traces-set-interval.js inspector: --inspect-brk for es modules 2018-02-21 10:18:42 -05:00
test-inspector-bindings.js test,benchmark,doc: enable dot-notation rule 2018-02-21 18:12:26 -05:00
test-inspector-break-e.js inspector: --inspect-brk for es modules 2018-02-21 10:18:42 -05:00
test-inspector-break-when-eval.js inspector: --inspect-brk for es modules 2018-02-21 10:18:42 -05:00
test-inspector-contexts.js test: fix spelling in test case comments 2018-01-24 07:58:27 -06:00
test-inspector-debug-brk-flag.js inspector: --inspect-brk for es modules 2018-02-21 10:18:42 -05:00
test-inspector-debug-end.js inspector: --inspect-brk for es modules 2018-02-21 10:18:42 -05:00
test-inspector-enabled.js test: move inspector tests to parallel/sequential 2017-10-17 19:35:50 -04:00
test-inspector-exception.js inspector: --inspect-brk for es modules 2018-02-21 10:18:42 -05:00
test-inspector-invalid-args.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-inspector-ip-detection.js test,benchmark,doc: enable dot-notation rule 2018-02-21 18:12:26 -05:00
test-inspector-module.js test: minor refactoring 2018-03-21 10:50:04 +00:00
test-inspector-not-blocked-on-idle.js inspector: --inspect-brk for es modules 2018-02-21 10:18:42 -05:00
test-inspector-open.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-inspector-overwrite-config.js src: put bootstrappers in lib/internal/bootstrap/ 2018-04-04 16:21:09 +02:00
test-inspector-port-cluster.js cluster: fix inspector port assignment 2018-02-26 23:42:43 +01:00
test-inspector-port-zero-cluster.js cluster: fix inspector port assignment 2018-02-26 23:42:43 +01:00
test-inspector-port-zero.js test: make debugging of inspector-port-zero easier 2017-12-11 17:25:41 -05:00
test-inspector-scriptparsed-context.js inspector: --inspect-brk for es modules 2018-02-21 10:18:42 -05:00
test-inspector-stop-profile-after-done.js test: fix assertion argument order 2018-03-20 11:34:00 +00:00
test-inspector-stops-no-file.js test: remove unused parameter 2017-12-11 17:27:43 -05:00
test-inspector.js inspector: report client-visible host and port 2018-04-02 19:35:40 +02:00
test-module-loading.js test: update a few tests to work on OpenBSD 2018-02-21 14:20:27 -05:00
test-net-better-error-messages-port.js test: use dynamic port instead of common.PORT 2017-05-09 13:25:05 -07:00
test-net-bytes-per-incoming-chunk-overhead.js src: re-add Realloc() shrink after reading stream data 2018-06-12 13:51:10 -05:00
test-net-connect-local-error.js test: fix sequential test-net-connect-local-error 2017-05-22 14:11:57 -04:00
test-net-GH-5504.js test: clean up inappropriate language 2017-12-12 03:27:12 -05:00
test-net-listen-shared-ports.js lib,src: fix consistent spacing inside braces 2017-07-21 15:13:47 -04:00
test-net-localport.js test: move common.PORT tests to sequential 2017-09-10 23:56:30 -03:00
test-net-reconnect-error.js test: move net reconnect error test to sequential 2017-05-20 08:08:13 -04:00
test-net-response-size.js test: address nits and rename the corresponding fixture 2018-03-20 11:33:47 +00:00
test-net-server-address.js test: simplify test skipping 2017-07-04 12:41:49 +03:00
test-net-server-bind.js test: refactor test-net-server-bind 2017-05-31 22:09:54 -07:00
test-next-tick-error-spin.js test: remove unused parameter in test-next-tick-error-spin.js 2017-12-11 17:27:45 -05:00
test-performance.js test: minor refactoring 2018-03-21 10:50:04 +00:00
test-pipe.js test: add common.noop, default for common.mustCall() 2017-03-26 12:47:15 -07:00
test-process-warnings.js test: use fixtures in test-process-warnings 2017-10-12 18:18:39 -07:00
test-repl-timeout-throw.js test: fix flaky repl-timeout-throw 2018-02-21 14:20:13 -05:00
test-require-cache-without-stat.js test: improve to use template string 2018-01-30 10:24:05 -06:00
test-stream-writable-clear-buffer.js stream: fix disparity between buffer and the count 2017-10-01 23:37:15 -03:00
test-stream2-fs.js test: use ES6 classes instead of util.inherits 2017-11-13 08:00:10 -06:00
test-stream2-stderr-sync.js test: improve to use template string 2018-01-30 10:24:05 -06:00
test-timers-block-eventloop.js test: fix flaky timers-block-eventloop test 2018-02-21 14:20:03 -05:00
test-timers-blocking-callback.js test: make timers-blocking-callback more reliable 2017-08-20 15:41:18 -07:00
test-tls-connect.js test: remove common.PORT from parallel tests 2017-12-12 03:28:10 -05:00
test-tls-lookup.js test: remove assert.doesNotThrow() 2018-03-21 10:50:02 +00:00
test-util-debug.js util: allow wildcards in NODE_DEBUG variable 2018-01-08 02:21:04 -05:00
test-vm-timeout-rethrow.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
testcfg.py test: split test in parallel/sequential 2014-12-17 20:45:02 +07:00