Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0b32af commit e5dbc95Copy full SHA for e5dbc95
src/aliased_buffer.h
@@ -221,7 +221,8 @@ class AliasedBufferBase {
221
const v8::HandleScope handle_scope(isolate_);
222
223
const size_t old_size_in_bytes = sizeof(NativeT) * count_;
224
- const size_t new_size_in_bytes = sizeof(NativeT) * new_capacity;
+ const size_t new_size_in_bytes = MultiplyWithOverflowCheck(sizeof(NativeT),
225
+ new_capacity);
226
227
// allocate v8 new ArrayBuffer
228
v8::Local<v8::ArrayBuffer> ab = v8::ArrayBuffer::New(
0 commit comments