diff options
author | Bruno Haible <bruno@clisp.org> | 2019-07-02 20:43:00 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-07-02 20:43:00 +0200 |
commit | 3e4a348ea6f027e6337a9d0709e7f32422f04f19 (patch) | |
tree | 3c5a39ca8c84b692732a90953c52789fa16996c0 /modules/getcwd | |
parent | 7c3bb8672487df690770d3bf96f2c140b7a64b76 (diff) | |
download | gnulib-3e4a348ea6f027e6337a9d0709e7f32422f04f19.tar.gz |
getcwd: Fix crash when invoked with size = 0 on MSVC.
* lib/getcwd.c: Include msvc-inval.h.
(getcwd_nothrow): New function/macro.
(getcwd_system): New macro.
(__getcwd): Use it instead of getcwd.
* modules/getcwd (Depends-on): Add msvc-inval.
* doc/posix-functions/getcwd.texi: Mention the MSVC issue.
Diffstat (limited to 'modules/getcwd')
-rw-r--r-- | modules/getcwd | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/getcwd b/modules/getcwd index 628c4d1f6f..90299a1c7e 100644 --- a/modules/getcwd +++ b/modules/getcwd @@ -13,6 +13,7 @@ Depends-on: unistd extensions pathmax [test $REPLACE_GETCWD = 1] +msvc-inval [test $REPLACE_GETCWD = 1] mempcpy [test $REPLACE_GETCWD = 1] d-ino [test $REPLACE_GETCWD = 1] memmove [test $REPLACE_GETCWD = 1] |