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 — child_process: add nullptr checks after allocs · nodejs/node@2e6e2d6

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • process_wrap.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/process_wrap.cc‎

Copy file name to clipboardExpand all lines: src/process_wrap.cc
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ class ProcessWrap : public HandleWrap {
165165
for (int i = 0; i < argc; i++) {
166166
node::Utf8Value arg(env->isolate(), js_argv->Get(i));
167167
options.args[i] = strdup(*arg);
168+
CHECK_NE(options.args[i], nullptr);
168169
}
169170
options.args[argc] = nullptr;
170171
}
@@ -186,6 +187,7 @@ class ProcessWrap : public HandleWrap {
186187
for (int i = 0; i < envc; i++) {
187188
node::Utf8Value pair(env->isolate(), env_opt->Get(i));
188189
options.env[i] = strdup(*pair);
190+
CHECK_NE(options.env[i], nullptr);
189191
}
190192
options.env[envc] = nullptr;
191193
}

0 commit comments

Comments
0 (0)
You are visitor 01402520 — 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.