GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: fix out-of-bound reads from invalid sizeof usage · btd/node@8698dd9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test
    • addons/worker-buffer-callback
      • binding.cc
    • node-api/test_worker_buffer_callback
      • test_worker_buffer_callback.c
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/addons/worker-buffer-callback/binding.cc‎

Copy file name to clipboardExpand all lines: test/addons/worker-buffer-callback/binding.cc
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void Initialize(Local<Object> exports,
3030
node::Buffer::New(
3131
isolate,
3232
data,
33-
sizeof(data),
33+
sizeof(char),
3434
[](char* data, void* hint) {
3535
delete data;
3636
free_call_count++;
Collapse file

‎test/node-api/test_worker_buffer_callback/test_worker_buffer_callback.c‎

Copy file name to clipboardExpand all lines: test/node-api/test_worker_buffer_callback/test_worker_buffer_callback.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ NAPI_MODULE_INIT() {
3535
NAPI_CALL(env, napi_create_external_arraybuffer(
3636
env,
3737
data,
38-
sizeof(data),
38+
sizeof(char),
3939
finalize_cb,
4040
NULL,
4141
&buffer));

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.