Ben Noordhuis
89e311b1ae
deps: back-port openssl patch
Check for potentially exploitable overflows in asn1_d2i_read_bio
BUF_mem_grow and BUF_mem_grow_clean. Refuse attempts to shrink buffer
in CRYPTO_realloc_clean.
Taken from OpenSSL CVS. Addresses CVE-2012-2110.
13 years ago
Nathan Rajlich
248f552ab4
process: ensure that the "exit" event always has "code" given
Upon "normal" exiting of Node (i.e. the event loop completes naturally),
the "code" parameter was not being passed to the "exit" event listeners.
Be consistent. Tests included.
13 years ago
Maciej Małecki
77c18d1e1b
console: throw when no such label exists in `console.timeEnd`
Test included.
13 years ago
Bert Belder
3bcbd14bb1
process_wrap: don't use uv_spawn2
It was a temporary thing for the 0.6 branch only.
13 years ago
Bert Belder
d2dd9d108d
uv: upgrade to e2cae340a6
13 years ago
Bert Belder
c8a10e97c8
Merge branch 'v0.6'
Conflicts:
deps/uv/include/uv-private/uv-unix.h
deps/uv/include/uv-private/uv-win.h
deps/uv/src/uv-common.c
deps/uv/src/win/fs.c
src/process_wrap.cc
13 years ago
ssuda
db844b152a
process: don't use strdup()
file and cwd can be directly used from Utf8Value.
Conflicts:
src/process_wrap.cc
13 years ago
Bert Belder
3546383cf0
process_wrap: avoid leaking memory when throwing due to invalid arguments
13 years ago
Andreas Madsen
ab072ee416
doc: document the address object in the cluster listening event
13 years ago
Ben Noordhuis
12a90e98bf
bench: add continuous stress test
Useful in tracking down or at least demonstrating memory leaks.
13 years ago
Bert Belder
55e4d54927
Child process: support the `gid` and `uid` options
13 years ago
Bert Belder
51e66ec410
Windows: turn off /Gm
Otherwise multicode compile doesn't work.
13 years ago
Bert Belder
0b75eee364
uv: upgrade to d41cc9118d
13 years ago
Bert Belder
e221cd4a53
uv: upgrade to aea5db5da1
13 years ago
Ben Noordhuis
4e84dfa683
bench: run GC and dump stats if --expose-gc is set
13 years ago
Marcel Laverdet
70635753a3
Cleanup vm module memory leakage
There are some paths here that led to dangling contexts. By being
smarter with handle management we can get rid of all the cleanup code
and fix those issues.
13 years ago
isaacs
76de7c0c26
Add customary 'fork me on github' banner to website
13 years ago
Nathan Rajlich
f405daa922
repl: make tab completion read up the prototype of "global"
For example, there's a global "toString()" function, so the REPL's
tab completion should pick that up.
13 years ago
Nathan Rajlich
98b4596a46
process: lint
13 years ago
Ben Noordhuis
5648d95c4a
Remove unused local variable.
13 years ago
Kyle Robinson Young
df6c12cdcc
doc: update string_decoder stability index to 3
Ref #3140
13 years ago
Nathan Rajlich
6292df659f
process: comment for consistency
13 years ago
Nathan Rajlich
ef3a874f41
process: set _print_eval even when --eval is not passed
This is for scripts being fed from stdin:
$ echo "{ foo: 'bar' }" | node -p
13 years ago
Nathan Rajlich
0b5235e68c
process: make --eval and reading scripts from stdin act the same
Reusing the same logic for both places for the behavior is consistent.
For example:
$ ./node -p -e "'Hello World'"
Hello World
$ echo "'Hello World'" | ./node -p
Hello World
13 years ago
Kyle Robinson Young
d9bad09ede
doc: util: add args to format and methods error, puts, print
13 years ago
Ben Noordhuis
48cdbffd24
v8: posix: try to send() whole buffer
Retry the send() syscall after a partial write.
13 years ago
Ben Noordhuis
ebfb8a5613
v8: posix: handle EINTR in socket functions
The socket functions did not handle EINTR (syscall interrupted by signal) which
tripped up the debug agent.
13 years ago
Ben Noordhuis
4359e8154d
v8: debug: fix error handling in SendConnectMessage()
The old error handling code checked if the return value of Socket::Send() != 0,
which is wrong because Socket::Send() can write less bytes than requested or
return -1 on error.
13 years ago
Kyle Robinson Young
491c8d92b8
doc: add deprecated function http.createClient()
Appears in a lot of old code and core tests. Documented to show it
is deprecated.
Closes #1613 .
13 years ago
Ben Noordhuis
a64acd8baa
test: cluster: add worker death event test
13 years ago
Malte-Thorben Bruns
ea50ebd36d
build: support make install "DESTDIR=/path"
13 years ago
Nathan Rajlich
e16021340d
repl: use Object.getPrototypeOf on functions for tab complete()
13 years ago
isaacs
c0a9985da7
domain: Document explicit binding, and d.run()
13 years ago
Kyle Robinson Young
525253d50e
doc: add args for rl.write and rl.prompt
13 years ago
Kyle Robinson Young
da56c72f59
readline: remove unused vars in _ttyWrite
13 years ago
isaacs
27dfb1d4c0
doc: typo in child_process documentation
13 years ago
isaacs
77c1cc0482
doc: typo in cluster documentation
13 years ago
Kyle Robinson Young
d91ef153e7
doc: add string_decoder doc
13 years ago
Brian White
642945cc00
docs: Remove duplicate socket.write() description
13 years ago
Ben Noordhuis
c21c51a6fc
v8: fix "pure virtual method called" runtime error
Fixes #2912 .
13 years ago
Kyle Robinson Young
e67a0f80e0
readline: _normalWrite() doesn't take a key modifier arg
13 years ago
isaacs
c9a231db0e
typo in node_http_parser
13 years ago
Kyle Robinson Young
57148f54e1
readline: change char to ch to avoid reserved word
13 years ago
Ben Noordhuis
c56d1559fc
test: use the new net.listen(backlog=x) API
13 years ago
Erik Dubbelboer
12f77440ef
doc: improve dns module docs
13 years ago
Erik Dubbelboer
ecfe32e3a0
dns: add more error codes
13 years ago
isaacs
605927fbd9
Fix test/ jslint failures (by not linting tests)
In practice, it's not important to lint tests. We lint src/
and lib/, which is where we're more prone to make mistakes that
affect real-world situations in subtle ways, and where more
changes are made that ought to be kept in a consistent style.
Tests are a mess anyways, and no one cares.
13 years ago
Erik Dubbelboer
3d69bbfa87
net, http: add backlog parameter to .listen()
13 years ago
isaacs
b12b2b83fc
Merge remote-tracking branch 'ry/v0.6'
13 years ago
isaacs
33c76f19de
net.js: lint
13 years ago