0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Fedor Indutny 9180140231 _stream_wrap: prevent use after free in TLS
Queued write requests should be invoked on handle close, otherwise the
"consumer" might be already destroyed when the write callbacks of the
"consumed" handle will be invoked. Same applies to the shutdown
requests.

Make sure to "move" away socket from server to not break the
`connections` counter in `net.js`. Otherwise it might not call `close`
callback, or call it too early.

Fix: https://github.com/iojs/io.js/issues/1696
PR-URL: https://github.com/nodejs/io.js/pull/1910
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
2015-06-30 20:09:22 -07:00
..
internal util: move deprecate() to internal module 2015-06-16 16:06:45 -07:00
_debug_agent.js
_debugger.js lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
_http_agent.js http: logically respect maxSockets 2015-04-17 12:20:44 -04:00
_http_client.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
_http_common.js http: simplify code and remove unused properties 2015-05-25 01:07:22 -04:00
_http_incoming.js http: revert deprecation of client property 2015-05-31 20:37:44 +02:00
_http_outgoing.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
_http_server.js lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
_linklist.js
_stream_duplex.js node: allow multiple arguments passed to nextTick 2015-04-15 17:02:21 -06:00
_stream_passthrough.js
_stream_readable.js lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
_stream_transform.js
_stream_wrap.js _stream_wrap: prevent use after free in TLS 2015-06-30 20:09:22 -07:00
_stream_writable.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
_tls_common.js tls: destroy singleUse context immediately 2015-04-30 11:02:30 +02:00
_tls_legacy.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
_tls_wrap.js _stream_wrap: prevent use after free in TLS 2015-06-30 20:09:22 -07:00
assert.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
buffer.js buffer: prevent abort on bad proto 2015-06-25 13:07:01 -06:00
child_process.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
cluster.js cluster: wait on servers closing before disconnect 2015-06-09 10:41:38 -07:00
console.js lib: fix eslint styles 2015-05-09 12:10:02 +09:00
constants.js
crypto.js lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
dgram.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
dns.js lib: simplify nextTick() usage 2015-05-25 10:14:18 -04:00
domain.js
events.js events: provide better error message for unhandled error 2015-05-12 08:33:20 -05:00
freelist.js iojs: introduce internal modules 2015-03-25 22:12:18 +03:00
fs.js lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
http.js
https.js Revert "url: significantly improve the performance of the url module" 2015-05-03 20:29:41 -07:00
module.js module: fix stat with long paths on Windows 2015-06-22 22:03:31 +10:00
net.js net: fix debug for dnsopts 2015-06-26 07:42:43 -05:00
os.js os: add homedir() 2015-06-05 22:58:14 -04:00
path.js path: reduce type checking on some methods 2015-03-19 21:11:12 -04:00
process.js
punycode.js lib: add missing new for errors lib/*.js 2015-03-24 12:42:15 -07:00
querystring.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
readline.js lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
repl.js repl: make 'Unexpected token' errors recoverable 2015-06-25 12:17:51 -04:00
smalloc.js smalloc: deprecate whole module 2015-06-04 11:00:19 +03:00
stream.js lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
string_decoder.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
sys.js util: introduce printDeprecationMessage function 2015-06-04 10:59:43 +03:00
timers.js lib: simplify nextTick() usage 2015-05-25 10:14:18 -04:00
tls.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
tty.js lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
url.js url: fix typo in comment 2015-06-30 13:47:57 -07:00
util.js util: dont repeat isBuffer 2015-06-16 16:08:15 -07:00
v8.js lib: deprecate the smalloc module 2015-04-29 19:33:43 +02:00
vm.js
zlib.js zlib: prevent uncaught exception in zlibBuffer 2015-06-15 15:43:08 -06:00