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

buffer: ignore negative allocation lengths #7051

Merged
merged 1 commit into from
May 31, 2016

Commits on May 31, 2016

  1. buffer: ignore negative allocation lengths

    Treat negative length arguments to `Buffer()`/`allocUnsafe()`
    as if they were zero so the allocation does not affect the
    pool’s offset.
    
    Fixes: nodejs#7047
    PR-URL: nodejs#7051
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
    Reviewed-By: Rod Vagg <rod@vagg.org>
    addaleax committed May 31, 2016
    Configuration menu
    Copy the full SHA
    ef9a8fa View commit details
    Browse the repository at this point in the history