node/lib
Evan Lucas 57359cd1e4 fs: don't throw in read if buffer too big
If the resulting buffer.toString() call in fs.read throws, catch the
error and pass it back in the callback.

This issue only presents itself when fs.read is called using the legacy
string interface:

fs.read(fd, length, position, encoding, callback)

PR-URL: https://github.com/nodejs/node/pull/3503
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
2015-10-25 21:24:12 -05:00
..
internal repl: limit persistent history correctly on load 2015-10-19 11:53:54 -04: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 lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
_http_client.js http: add checkIsHttpToken check for header fields 2015-09-25 08:37:57 -07:00
_http_common.js http: fix stalled pipeline bug 2015-10-14 12:16:18 -04:00
_http_incoming.js http: do not allow multiple instances of certain response headers 2015-10-06 14:53:21 -07:00
_http_outgoing.js http: fix stalled pipeline bug 2015-10-14 12:16:18 -04:00
_http_server.js http: fix stalled pipeline bug 2015-10-14 12:16:18 -04:00
_linklist.js lib,test: deprecate _linklist 2015-10-08 17:32:08 -07: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 stream: avoid unnecessary concat of a single buffer. 2015-10-14 12:28:52 -07: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 stream: fix signature of _write() in a comment 2015-10-13 22:32:21 -07:00
_tls_common.js tls: output warning of setDHParam to console.trace 2015-10-16 11:40:05 +09:00
_tls_legacy.js tls: add options argument to createSecurePair 2015-10-17 11:53:45 -04:00
_tls_wrap.js tls: TLSSocket options default isServer false 2015-10-20 16:14:22 -04:00
assert.js assert: support arrow functions in .throws() 2015-10-08 19:26:01 +02:00
buffer.js buffer: don't abort on prototype getters 2015-10-09 15:42:23 -06:00
child_process.js child_process: check execFile and fork args 2015-09-06 21:38:00 +10:00
cluster.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
console.js console: rename argument of time and timeEnd 2015-10-16 21:03:44 +02:00
constants.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
crypto.js streams: refactor LazyTransform to internal/ 2015-09-14 19:58:04 -07:00
dgram.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
dns.js async_wrap: ensure all objects have internal field 2015-10-01 13:56:25 -06:00
domain.js src: fix --abort-on-uncaught-exception 2015-10-05 18:12:43 -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 fs: don't throw in read if buffer too big 2015-10-25 21:24:12 -05:00
http.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
https.js https: reuse TLS sessions in Agent 2015-07-27 11:48:36 -07:00
module.js module: remove unnecessary property and method 2015-10-06 18:56:20 +05:30
net.js net: don't throw on bytesWritten access 2015-10-12 08:29:30 -06:00
os.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
path.js path: improve posixSplitPath performance 2015-09-25 08:28:26 -05: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 lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
repl.js repl: event ordering: delay 'close' until 'flushHistory' 2015-10-22 13:39:04 -04:00
stream.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
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: reuse timer in setTimeout().unref() 2015-10-20 14:20:24 -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: Remove p, has been deprecated for years 2015-10-19 20:52:56 +02: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