Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

child_process: use non-infinite maxBuffer defaults #23027

Closed
wants to merge 1 commit into from

Commits on Apr 4, 2019

  1. child_process: use non-infinite maxBuffer defaults

    Set the default maxBuffer size to 204,800 bytes for execSync,
    execFileSync, and spawnSync.
    
    APIs that return the child output as a string should have non-infinite
    defaults for maxBuffer sizes to avoid out-of-memory error conditions. A
    non-infinite default used to be the documented behaviour for all
    relevant APIs, but the implemented behaviour for execSync, execFileSync
    and spawnSync was to have no maxBuffer limits.
    koh110 authored and sam-github committed Apr 4, 2019
    Configuration menu
    Copy the full SHA
    5323ead View commit details
    Browse the repository at this point in the history