Comment #3 on issue 3694 by i...@bnoordhuis.nl: Segmentation fault in CopyCharsUnsigned() with g++ 4.9.2
https://code.google.com/p/v8/issues/detail?id=3694

Here you go:

#include "v8.h"
#include <string.h>

int main() {
  v8::V8::Initialize();
  v8::Isolate* isolate = v8::Isolate::New();
  {
    v8::Isolate::Scope isolate_scope(isolate);
    v8::HandleScope handle_scope(isolate);
    v8::Local<v8::Context> context = v8::Context::New(isolate);
    v8::Context::Scope context_scope(context);
    uint8_t buffer[64];
    memset(buffer, '.', sizeof(buffer));
    for (int i = 0; i < 16; i += 1) {
      const uint16_t* addr = reinterpret_cast<const uint16_t*>(buffer + i);
v8::String::NewFromTwoByte(isolate, addr, v8::String::kNormalString, 16);
    }
  }
  isolate->Dispose();
  v8::V8::Dispose();
}

Tested with the current HEAD (commit 5883939), still reproducible.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to