mirror of https://github.com/lukechilds/node.git
Browse Source
Currently, nullCheck() will attempt to invoke any truthy value as a function if the path argument contains a null character. This commit validates that the callback is actually a function before trying to invoke it. fs.access() was vulnerable to this bug, as nullCheck() was called prior to type checking its callback. PR-URL: https://github.com/iojs/io.js/pull/887 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>v1.8.0-commit
3 changed files with 10 additions and 5 deletions
Loading…
Reference in new issue