0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test
Anna Henningsen 54a5287e3e zlib: fix gzip member head/buffer boundary issue
Make sure that, even if an `inflate()` call only sees the first
few bytes of a following gzip member, all members are decompressed
and part of the full output.

This change also modifies behaviour for trailing garbage:
If there is trailing garbage which happens to start with the
gzip magic bytes, it is no longer discarded but rather throws
an error, since we cannot reliably tell random garbage from
a valid gzip member anyway and have to try and decompress it.
(Null byte padding is not affected, since it has been pointed
out at various occasions that such padding is normal and
discarded by `gzip(1)`, too.)

Adds tests for the special case that the first `inflate()` call
receives only the first few bytes of a second gzip member but
not the whole header (or even just the magic bytes).

PR-URL: https://github.com/nodejs/node/pull/5883
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-03-31 13:23:31 +02:00
..
abort
addons
cctest
debugger test: fix test-debugger-client.js 2016-03-24 13:09:05 -07:00
disabled
fixtures test: update test-repl-require for local paths 2016-03-29 21:39:26 +02:00
gc
internet test: move dns test to test/internet 2016-03-25 21:26:57 -07:00
known_issues test: add known_issues test for GH-2148 2016-03-30 19:45:29 -07:00
message lib,src: refactor src/node.js into internal files 2016-03-22 19:20:01 -04:00
parallel zlib: fix gzip member head/buffer boundary issue 2016-03-31 13:23:31 +02:00
pummel
sequential fs: Buffer and encoding enhancements to fs API 2016-03-25 14:21:27 -07:00
testpy
timers
.eslintrc
common.js fs: Buffer and encoding enhancements to fs API 2016-03-25 14:21:27 -07:00
README.md

Tests

abort

Tests for when the --abort-on-uncaught-exception flag is used.

Runs on CI
No

addons

Tests for addon functionality.

Runs on CI
Yes

cctest

C++ test that is run as part of the build process.

Runs on CI
Yes

debugger

Tests for debugger functionality.

Runs on CI
No

disabled

Tests that have been disabled from running for various reasons.

Runs on CI
No

fixtures

Test fixtures used in various tests throughout the test suite.

gc

Tests for garbage collection related functionality.

Runs on CI
No

internet

Tests that make real outbound connections (mainly networking related modules). Tests for networking related modules may also be present in other directories, but those tests do not make outbound connections.

Runs on CI
No

known_issues

Tests reproducing known issues within the system.

Runs on CI
No

message

Tests for messages that are output for various conditions (console.log, error messages etc.)

Runs on CI
Yes

parallel

Various tests that are able to be run in parallel.

Runs on CI
Yes

pummel

Various tests for various modules / system functionality operating under load.

Runs on CI
No

sequential

Various tests that are run sequentially.

Runs on CI
Yes

testpy

Test configuration utility used by various test suites.

timers

Tests for timing utilities (setTimeout and setInterval).

Runs on CI
No