Ben Noordhuis f101f7c9ba buffers: honor length argument in base64 decoder
Honor the length argument in `buf.write(s, 0, buf.length, 'base64')`. Before
this commit, the length argument was ignored. The decoder would keep writing
until it hit the end of the buffer. Since most buffers in Node are slices of
a parent buffer (the slab), this bug would overwrite the content of adjacent
buffers.

The bug is trivially demonstrated with the following test case:

    var assert = require('assert');
    var a = Buffer(3);
    var b = Buffer('xxx');
    a.write('aaaaaaaa', 'base64');
    assert.equal(b.toString(), 'xxx');

This commit coincidentally also fixes a bug where Buffer._charsWritten was not
updated for zero length buffers.
2012-02-02 19:13:56 +01:00
2012-02-02 17:42:08 +01:00
2012-01-27 16:32:19 -08:00
2012-01-23 13:11:33 -08:00
2011-12-14 03:38:41 +01:00
2012-01-27 16:32:19 -08:00
2012-01-27 17:08:02 -08:00
2011-09-12 21:48:30 +00:00
2011-12-05 16:20:44 -08:00
2012-01-23 13:11:33 -08:00
2012-01-06 16:26:16 -08:00
2012-01-06 16:26:16 -08:00
2011-12-16 11:38:20 -08:00

Evented I/O for V8 javascript. Build Status

To build:

Unix/Macintosh (requires python 2.6 or 2.7):

./configure
make
make install

Windows:

vcbuild.bat

To run the tests:

Unix/Macintosh:

make test

Windows:

vcbuild.bat test

To build the documentation:

make doc

To read the documentation:

man doc/node.1

Resources for Newcomers

Languages
JavaScript 65.4%
C++ 22.6%
Python 8.4%
C 2.1%
HTML 0.5%
Other 0.8%