0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Brian White 79ef3b6b5d
string_decoder: fix bad utf8 character handling
This commit fixes an issue when extra utf8 continuation bytes appear
at the end of a chunk of data, causing miscalculations to be made
when checking how many bytes are needed to decode a complete
character.

Fixes: https://github.com/nodejs/node/issues/7308
PR-URL: https://github.com/nodejs/node/pull/7310
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
2016-06-23 23:18:10 -04:00
..
internal crypto,tls: perf improvements for crypto and tls getCiphers 2016-06-21 10:03:08 -07:00
_debug_agent.js
_debugger.js debugger: remove obsolete setTimeout 2016-06-07 13:32:05 -07:00
_http_agent.js tls,https: respect address family when connecting 2016-05-28 22:49:36 +02:00
_http_client.js http: wait for both prefinish/end to keepalive 2016-06-06 13:34:11 -04:00
_http_common.js http: optimize checkInvalidHeaderChar() 2016-06-14 15:13:00 -04:00
_http_incoming.js http: fix no dumping after maybeReadMore 2016-06-15 12:50:19 -04:00
_http_outgoing.js buffer: introduce latin1 encoding term 2016-06-07 13:51:14 -06:00
_http_server.js tools: lint for object literal spacing 2016-05-08 22:45:20 -07:00
_linklist.js
_stream_duplex.js
_stream_passthrough.js
_stream_readable.js stream: ensure awaitDrain is increased once 2016-06-16 01:29:31 +02:00
_stream_transform.js stream: 'data' argument on callback of Transform._flush() 2016-06-09 11:06:01 +02:00
_stream_wrap.js
_stream_writable.js doc: make writable.setDefaultEncoding() return this 2016-04-30 12:55:46 -04:00
_tls_common.js src: refactor require('constants') 2016-05-17 11:05:18 -07:00
_tls_legacy.js lib: replace legacy uses of __defineGetter__ 2016-05-16 17:01:34 -07:00
_tls_wrap.js buffer: introduce latin1 encoding term 2016-06-07 13:51:14 -06:00
.eslintrc
assert.js assert: allow circular references 2016-04-29 16:52:57 -07:00
buffer.js buffer,string_decoder: consolidate encoding validation logic 2016-06-21 09:28:38 -07:00
child_process.js child_process: measure buffer length in bytes 2016-05-25 10:57:59 -07:00
cluster.js cluster: don't send messages if no IPC channel 2016-06-08 15:51:26 +02:00
console.js console: timeEnd() with no label emits warning 2016-04-25 08:28:23 -07:00
constants.js src: refactor require('constants') 2016-05-17 11:05:18 -07:00
crypto.js crypto,tls: perf improvements for crypto and tls getCiphers 2016-06-21 10:03:08 -07:00
dgram.js dgram: copy the list in send 2016-05-26 11:28:45 +02:00
dns.js
domain.js domain: add message for dispose deprecation 2016-06-07 00:27:42 -04:00
events.js events: pass the original listener added by once 2016-04-29 12:10:50 -07:00
fs.js fs: execute mkdtemp's callback with no context 2016-06-04 16:31:18 +05:30
http.js
https.js
module.js src,module: add --preserve-symlinks command line flag 2016-05-13 11:43:47 -07:00
net.js buffer: introduce latin1 encoding term 2016-06-07 13:51:14 -06:00
os.js src: refactor require('constants') 2016-05-17 11:05:18 -07:00
path.js path: fix basename() regressions 2016-05-18 02:12:28 -04:00
process.js
punycode.js punycode: update to v2.0.0 2016-06-17 17:03:49 +02:00
querystring.js benchmark,test,lib: remove extra spaces 2016-05-11 23:18:16 -07:00
readline.js readline: return old status from _setRawMode 2016-06-18 20:44:21 +02:00
repl.js repl: break on sigint/ctrl+c 2016-06-18 20:44:25 +02:00
stream.js
string_decoder.js string_decoder: fix bad utf8 character handling 2016-06-23 23:18:10 -04:00
sys.js
timers.js
tls.js tls: avoid calling Buffer.byteLength multiple times 2016-06-21 10:53:25 -07:00
tty.js tty: use blocking mode on OS X 2016-06-01 18:57:45 -04:00
url.js url: return valid file: urls fom url.format() 2016-06-16 13:40:20 -07:00
util.js util: pretty-print SIMD types 2016-05-23 12:16:41 +02:00
v8.js
vm.js vm: add ability to break on sigint/ctrl+c 2016-06-18 20:44:16 +02:00
zlib.js zlib: move constants into zlib.constants 2016-06-11 17:24:35 -07:00