joyent/node — pull request #5511 by trevnorris (2013-05-20 22:09:41+00:00)
Title: buffer: throw when writing beyond buffer

Previously one could write anywhere in a buffer pool if they accidently
got their offset wrong. Mainly because the cc level checks only test
against the parent slow buffer and not against the js object properties.
So now we check to make sure values won't go beyond bounds without
letting the dev know.

Fix for #5498

/cc @isaacs