diff options
author | gengjiawen <technicalcute@gmail.com> | 2019-11-15 23:47:45 +0800 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-11-18 15:45:52 +0100 |
commit | 7ae13c360b3a6e3c843432312f7b6f4f137d3cb9 (patch) | |
tree | cfba705333ba865ed5abaaa1f0f3132eaa337b92 /deps/nghttp2/lib/nghttp2_hd.c | |
parent | 20b7f4a5e93bc587976f19c198fa9291dca79674 (diff) | |
download | android-node-v8-7ae13c360b3a6e3c843432312f7b6f4f137d3cb9.tar.gz android-node-v8-7ae13c360b3a6e3c843432312f7b6f4f137d3cb9.tar.bz2 android-node-v8-7ae13c360b3a6e3c843432312f7b6f4f137d3cb9.zip |
deps: update nghttp2 to 1.40.0
PR-URL: https://github.com/nodejs/node/pull/30493
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'deps/nghttp2/lib/nghttp2_hd.c')
-rw-r--r-- | deps/nghttp2/lib/nghttp2_hd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/nghttp2/lib/nghttp2_hd.c b/deps/nghttp2/lib/nghttp2_hd.c index 11ca3345f3..5e86931525 100644 --- a/deps/nghttp2/lib/nghttp2_hd.c +++ b/deps/nghttp2/lib/nghttp2_hd.c @@ -1694,6 +1694,11 @@ static ssize_t hd_inflate_read_huff(nghttp2_hd_inflater *inflater, DEBUGF("inflatehd: huffman decoding failed\n"); return readlen; } + if (nghttp2_hd_huff_decode_failure_state(&inflater->huff_decode_ctx)) { + DEBUGF("inflatehd: huffman decoding failed\n"); + return NGHTTP2_ERR_HEADER_COMP; + } + inflater->left -= (size_t)readlen; return readlen; } |