Uh oh!
There was an error while loading. Please reload this page.
wasm: add missing init reported by coverity - #42897
Closed
mhdawson wants to merge 1 commit into
Closed
Conversation
Signed-off-by: Michael Dawson <mdawson@devrus.com>
mhdawson
commented
Apr 28, 2022
MemberAuthor
Report from coverity: 26private:27WasmStreamingObject(Environment* env, v8::Local<v8::Object> object)
28 : BaseObject(env, object) {
29MakeWeak();
CID254660 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-staticclassmember wasm_size_ is not initialized in this constructor nor in any functions that it calls.
30 }
3132~WasmStreamingObject() override {}
3334private:35staticvoidNew(const v8::FunctionCallbackInfo<v8::Value>& args);
36staticvoidSetURL(const v8::FunctionCallbackInfo<v8::Value>& args);
37staticvoidPush(const v8::FunctionCallbackInfo<v8::Value>& args);
38staticvoidFinish(const v8::FunctionCallbackInfo<v8::Value>& args);
39staticvoidAbort(const v8::FunctionCallbackInfo<v8::Value>& args);
4041 std::shared_ptr<v8::WasmStreaming> streaming_;
1. member_decl: Class member declaration for wasm_size_.
42size_t wasm_size_;
43}; |
lpinca
approved these changes
Apr 28, 2022
VoltrexKeyva
approved these changes
Apr 28, 2022
cjihrig
approved these changes
Apr 28, 2022
Mesteery
approved these changes
Apr 28, 2022
tniessen
commented
Apr 29, 2022
Member
FWIW, this is where the initialization currently happens: Lines 58 to 70 in 68fb0bf Other functions rely on the assumption that the initialization ran (e.g., will abort the process if Eventually, we might want to revisit how we initialize C++ backed JS objects in general. |
nodejs-github-bot
commented
May 2, 2022
Collaborator
nodejs-github-bot
commented
May 2, 2022
Collaborator
This was referenced May 3, 2022
mhdawson added a commit
that referenced
this pull request
May 10, 2022
Signed-off-by: Michael Dawson <mdawson@devrus.com> PR-URL: #42897 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com>
mhdawson
commented
May 10, 2022
MemberAuthor
Landed in 7649989 |
BethGriggs pushed a commit
that referenced
this pull request
May 16, 2022
Signed-off-by: Michael Dawson <mdawson@devrus.com> PR-URL: #42897 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com>
Merged
juanarbol
commented
May 31, 2022
Member
Backport refs: #42701 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Michael Dawson mdawson@devrus.com