node/lib
Michaël Zasso 729479f3f4 buffer: SlowBuffer only accept valid numeric values
Fixes a regression that appeared with the new Buffer implementation in v3.
Without this change, calling the SlowBuffer constructor with something else
than a number would abort on the C++ side. This makes sure that the length
argument is coerced to number or is 0.

Fixes: https://github.com/nodejs/node/issues/2634
PR-URL: https://github.com/nodejs/node/pull/2635
Reviewed-By: trevnorris - Trevor Norris <trev.norris@gmail.com>
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com>
2015-09-06 21:38:07 +10:00
..
internal child_process: add callback parameter to .send() 2015-09-06 21:37:58 +10:00
_debug_agent.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_debugger.js debugger: use strict equality comparison 2015-08-26 13:22:55 -07:00
_http_agent.js http: fix agent.getName() and add tests 2015-08-04 11:56:17 -07:00
_http_client.js doc: fix comments in tls_wrap.cc and _http_client.js 2015-08-23 09:01:22 -07: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 http: Check this.connection before using it 2015-07-22 21:44:59 +05:30
_http_server.js events,lib: don't require EE#listenerCount() 2015-09-06 21:38:00 +10:00
_linklist.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
_stream_duplex.js node: allow multiple arguments passed to nextTick 2015-04-15 17:02:21 -06:00
_stream_passthrough.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_stream_readable.js events,lib: don't require EE#listenerCount() 2015-09-06 21:38:00 +10:00
_stream_transform.js stream: simpler stream constructon 2015-02-04 20:19:39 -08:00
_stream_wrap.js _stream_wrap: prevent use after free in TLS 2015-06-30 20:09:22 -07:00
_stream_writable.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +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_base: various improvements 2015-08-20 01:14:37 -07:00
assert.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
buffer.js buffer: SlowBuffer only accept valid numeric values 2015-09-06 21:38:07 +10:00
child_process.js child_process: check execFile and fork args 2015-09-06 21:38:00 +10:00
cluster.js cluster: do not unconditionally set --debug-port 2015-08-04 11:56:12 -07:00
console.js lib: fix eslint styles 2015-05-09 12:10:02 +09:00
constants.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
crypto.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
dgram.js dgram: make send cb act as "error" event handler 2015-08-04 11:56:12 -07:00
dns.js Revert "dns: remove AI_V4MAPPED hint flag on FreeBSD" 2015-08-04 11:56:10 -07:00
domain.js deps: update v8 to 4.4.63.9 2015-08-04 11:56:14 -07:00
events.js events,lib: don't require EE#listenerCount() 2015-09-06 21:38:00 +10:00
freelist.js lib,test: add freelist deprecation and test 2015-07-17 19:48:31 -07:00
fs.js events: deprecate static listenerCount function 2015-08-20 03:17:08 +05:30
http.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
https.js https: reuse TLS sessions in Agent 2015-07-27 11:48:36 -07:00
module.js src: apply debug force load fixups from 41e63fb 2015-09-06 21:38:04 +10:00
net.js Revert "lib,src: add unix socket getsockname/getpeername" 2015-08-28 00:14:13 +02:00
os.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
path.js path: use '===' instead of '==' for comparison 2015-08-17 20:47:41 +02:00
process.js src: remove excessive license boilerplate 2015-01-27 16:35:05 +11:00
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 events: deprecate static listenerCount function 2015-08-20 03:17:08 +05:30
repl.js node: rename from io.js to node 2015-08-23 17:59:43 -04:00
smalloc.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
stream.js events,lib: don't require EE#listenerCount() 2015-09-06 21:38:00 +10: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 timers: minor _unrefActive fixes and improvements 2015-09-02 08:14:26 -04:00
tls.js tls: add --tls-cipher-list command line switch 2015-08-23 08:52:01 -07:00
tty.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
url.js doc: multiple documentation updates cherry picked from v0.12 2015-08-05 08:44:55 -07:00
util.js util: display constructor when inspecting objects 2015-08-08 00:13:52 -04:00
v8.js src: add total_available_size to v8 statistics 2015-08-11 22:51:50 +02:00
vm.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
zlib.js buffer: fix usage of kMaxLength 2015-08-04 11:56:12 -07:00