Chromium Code Reviews| Index: src/api.cc |
| diff --git a/src/api.cc b/src/api.cc |
| index 3a89095d0b7344512dbbd6658d816f09bd851322..6294b21f8fdd1b626992c9795da576be49f6a7b3 100644 |
| --- a/src/api.cc |
| +++ b/src/api.cc |
| @@ -6340,6 +6340,7 @@ size_t v8::ArrayBufferView::CopyContents(void* dest, size_t byte_length) { |
| source = reinterpret_cast<char*>(buffer->backing_store()); |
| } |
| } |
| + if (!source) return 0; |
|
Hannes Payer (out of office)
2015/04/22 07:45:53
Isn't that more an assert? source is not null when
jochen (gone - plz use gerrit)
2015/04/22 08:21:42
true. if it's neutered, byte_length() above will b
|
| memcpy(dest, source + byte_offset, bytes_to_copy); |
| } |
| return bytes_to_copy; |