diff options
author | James M Snell <jasnell@gmail.com> | 2018-04-03 11:26:38 -0700 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2018-06-12 20:46:45 -0400 |
commit | 8bf213dbdc7ee9c852252527f020d48e3bc97e15 (patch) | |
tree | 75bfd4c9d7ccc026b50c85c197172ecf959332d2 /src/node_http2.h | |
parent | 3217e8e66fa81e787b9f3b18c0c09235f050acee (diff) | |
download | android-node-v8-8bf213dbdc7ee9c852252527f020d48e3bc97e15.tar.gz android-node-v8-8bf213dbdc7ee9c852252527f020d48e3bc97e15.tar.bz2 android-node-v8-8bf213dbdc7ee9c852252527f020d48e3bc97e15.zip |
http2: fixup http2stream cleanup and other nits
This fixes CVE-2018-7161.
PR-URL: https://github.com/nodejs-private/node-private/pull/115
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Diffstat (limited to 'src/node_http2.h')
-rw-r--r-- | src/node_http2.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_http2.h b/src/node_http2.h index eb06d740ba..70c284c357 100644 --- a/src/node_http2.h +++ b/src/node_http2.h @@ -651,8 +651,8 @@ class Http2Stream : public AsyncWrap, Statistics statistics_ = {}; private: - Http2Session* session_; // The Parent HTTP/2 Session - int32_t id_; // The Stream Identifier + Http2Session* session_ = nullptr; // The Parent HTTP/2 Session + int32_t id_ = 0; // The Stream Identifier int32_t code_ = NGHTTP2_NO_ERROR; // The RST_STREAM code (if any) int flags_ = NGHTTP2_STREAM_FLAG_NONE; // Internal state flags |