Skip to content

stream: fix highWaterMark integer overflow

Rodrigo Muino Tomonari requested to merge github/fork/tniessen/fix-12553 into master

Fixes integer overflows when supplying values exceeding 2 ^ 31 - 1 for highWaterMark.

Fixes: https://github.com/nodejs/node/issues/12553

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

stream

Merge request reports

Loading