2 Commits
Author SHA1 Message Date
Timothy Gu c33933eb6d src, buffer: do not segfault on out-of-range index
Also add test cases for partial writes and invalid indices.

PR-URL: https://github.com/nodejs/node/pull/11927
Fixes: https://github.com/nodejs/node/issues/8724
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2017-04-18 20:02:15 -04:00
larissayvette a1751864e2 test: check noAssert option in buf.write*()
Add test to cover previously untested `noAssert` functionality in
buf.write*() functions.

PR-URL: https://github.com/nodejs/node/pull/10790
Reviewed-By: Rich Trott <rtrott@gmail.com>
2017-03-08 17:11:19 -08:00