[Pkg-javascript-devel] Bug#703666: nodejs: test/simple/test-buffer.js segfaults

Jérémy Lal kapouer at melix.org
Thu Mar 21 23:50:43 UTC 2013


Package: nodejs
Version: 0.10.1~dfsg1-1
Severity: normal

This bug is a placeholder for a segfaults that happens with
nodejs 0.10.x and its libv8 (3.14.5.8) dependency.


Upstream has a patch for libv8 to fix that bug, but i'm not sure
it is a libv8 bug :

--- a/src/v8utils.h
+++ b/src/v8utils.h
@@ -209,6 +209,8 @@

 template <typename sourcechar, typename sinkchar>
 void CopyChars(sinkchar* dest, const sourcechar* src, int chars) {
+  ASSERT(chars >= 0);
+  if (chars == 0) return;
   sinkchar* limit = dest + chars;
 #ifdef V8_HOST_CAN_READ_UNALIGNED
   if (sizeof(*dest) == sizeof(*src)) {



More information about the Pkg-javascript-devel mailing list