[nodejs] Buffer Overflow

2012-08-18 Thread Alan Gutierrez
When I write beyond the end of a `Buffer`, nothing bad happens. I'm expecting a earth-shattering kaboom, or at least an exception. I'm happier with the do nothing behavior, but I'm wondering if there was any debate about whether or not an exception should be raised when an is out of range. If so,

Re: [nodejs] Buffer Overflow

2012-08-18 Thread Nathan Rajlich
When you write past the length of a buffer, you're not actually writing to the underlying C buffer, you're just adding new numerical properties to the Buffer Javascript wrapper object. On Sat, Aug 18, 2012 at 7:57 AM, Alan Gutierrez a...@prettyrobots.com wrote: When I write beyond the end of a

Re: [nodejs] Buffer Overflow

2012-08-18 Thread Alan Gutierrez
On Sat, Aug 18, 2012 at 10:31:32AM -0700, Nathan Rajlich wrote: On Sat, Aug 18, 2012 at 7:57 AM, Alan Gutierrez a...@prettyrobots.com wrote: When I write beyond the end of a `Buffer`, nothing bad happens. I'm expecting a earth-shattering kaboom, or at least an exception. I'm happier with