Skip to content

Conversation

mhdawson
Copy link
Member

  • Fix move after use reported by coverity in node_contextify.cc

- Fix move after use reported by coverity in
  node_contextify.cc

Signed-off-by: Michael Dawson <[email protected]>
@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. vm Issues and PRs related to the vm subsystem. labels Mar 18, 2024
@mhdawson
Copy link
Member Author

Report from coverity

        code = String::Concat(
1524              isolate,
1525              code,
1526              String::NewFromUtf8(isolate, "})();").ToLocalChecked());
1527          ScriptCompiler::Source wrapped_source = GetCommonJSSourceInstance(
1528              isolate, code, filename, 0, 0, host_defined_options, nullptr);
      	
CID 352925: (#1 of 1): Using a moved object (USE_AFTER_MOVE)
18. use_after_move: params is used after it has been already moved.
1529          std::ignore = ScriptCompiler::CompileFunction(
1530              context,
1531              &wrapped_source,

Looks like recent PR added use of params later on

@mhdawson mhdawson added the request-ci Add this label to start a Jenkins CI on a PR. label Mar 19, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Mar 19, 2024
@nodejs-github-bot
Copy link
Collaborator

mhdawson added a commit that referenced this pull request Mar 22, 2024
- Fix move after use reported by coverity in
  node_contextify.cc

Signed-off-by: Michael Dawson <[email protected]>
PR-URL: #52141
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Geoffrey Booth <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
@mhdawson
Copy link
Member Author

Landed in 0431922

@mhdawson mhdawson closed this Mar 22, 2024
anonrig pushed a commit to anonrig/node that referenced this pull request Mar 25, 2024
- Fix move after use reported by coverity in
  node_contextify.cc

Signed-off-by: Michael Dawson <[email protected]>
PR-URL: nodejs#52141
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Geoffrey Booth <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
rdw-msft pushed a commit to rdw-msft/node that referenced this pull request Mar 26, 2024
- Fix move after use reported by coverity in
  node_contextify.cc

Signed-off-by: Michael Dawson <[email protected]>
PR-URL: nodejs#52141
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Geoffrey Booth <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
marco-ippolito pushed a commit that referenced this pull request May 2, 2024
- Fix move after use reported by coverity in
  node_contextify.cc

Signed-off-by: Michael Dawson <[email protected]>
PR-URL: #52141
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Geoffrey Booth <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
marco-ippolito pushed a commit that referenced this pull request May 3, 2024
- Fix move after use reported by coverity in
  node_contextify.cc

Signed-off-by: Michael Dawson <[email protected]>
PR-URL: #52141
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Geoffrey Booth <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. vm Issues and PRs related to the vm subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants