Files
node/deps
cjihrig 57badcf93e deps: libuv: cherry-pick 0e6e8620
Original commit message:

unix: don't use _POSIX_PATH_MAX

Libuv was using _POSIX_PATH_MAX wrong. Bug introduced in commit b56d279b
("unix: do not require PATH_MAX to be defined") from September 2018.

_POSIX_PATH_MAX is the minimum max path size guaranteed by POSIX, not
the actual max path size of the system libuv runs on. _POSIX_PATH_MAX
is always 256, the real max is often much bigger.

This commit fixes buffer overruns when processing very long paths in
uv_fs_readlink() and uv_fs_realpath() because libuv was not allocating
enough memory to store the result.

Fixes: https://github.com/libuv/libuv/issues/2965
PR-URL: https://github.com/libuv/libuv/pull/2966
Backport-PR-URL: https://github.com/nodejs-private/node-private/pull/221
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jameson Nash <vtjnash@gmail.com>
2020-09-08 18:01:03 +01:00
..
2018-09-06 08:52:21 +02:00
2019-05-16 14:57:02 -04:00
2019-12-17 17:08:17 -05:00
2020-06-02 14:59:31 +01:00
2020-07-13 14:22:49 -04:00
2020-09-08 18:01:03 +01:00
2020-07-01 09:20:48 -04:00
…