nodejs-github-bot · GitHub

@nodejs-github-bot added the c++

Issues and PRs that require attention from people who are familiar with C++.

label

Sep 13, 2016

@thusoy

@thusoy

addaleax

Closed

2 tasks

@thusoy

addaleax

@thusoy

Moves inflateSetDictionary right after inflateInit2 when mode is
INFLATERAW, since without the wrapper in appears zlib won't return
Z_NEED_DICT as it would otherwise, and will thus attempt inflating
without the dictionary, leading to an error.
Fixes: nodejs#8507
Uses const where possible, removes inaccurate comments, prefers
strictEqual where possible, ensures functions with assertions are called
and enures the inflater has correct encoding set.

@thusoy

addaleax pushed a commit that referenced this pull request

Sep 20, 2016
Moves inflateSetDictionary right after inflateInit2 when mode is
INFLATERAW, since without the wrapper in appears zlib won't return
Z_NEED_DICT as it would otherwise, and will thus attempt inflating
without the dictionary, leading to an error.
Fixes: #8507
PR-URL: #8512
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>

addaleax pushed a commit that referenced this pull request

Sep 20, 2016
Uses const where possible, removes inaccurate comments, prefers
strictEqual where possible, ensures functions with assertions are called
and enures the inflater has correct encoding set.
PR-URL: #8512
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>

@thusoy

Fishrock123 pushed a commit that referenced this pull request

Oct 11, 2016
Moves inflateSetDictionary right after inflateInit2 when mode is
INFLATERAW, since without the wrapper in appears zlib won't return
Z_NEED_DICT as it would otherwise, and will thus attempt inflating
without the dictionary, leading to an error.
Fixes: #8507
PR-URL: #8512
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>

Fishrock123 pushed a commit that referenced this pull request

Oct 11, 2016
Uses const where possible, removes inaccurate comments, prefers
strictEqual where possible, ensures functions with assertions are called
and enures the inflater has correct encoding set.
PR-URL: #8512
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>

Closed

3 tasks

easyaspi314 added a commit to easyaspi314/pako that referenced this pull request

Nov 13, 2017
This is just roughly tested, but I just ported the
change from nodejs/node#8512, or at least attempted to.
Before, when trying to inflateRaw (or inflate({raw:true});) with a custom
dictionary, you would get 'invalid distance too far back'.
This no longer seems to happen, so I think I fixed it.

Closed

Read the original on github.com ↗