aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2012-08-27 17:55:50 +0200
committerPatrik Nyblom <[email protected]>2012-08-30 16:55:53 +0200
commitcf6d1faf367b47c79ded23afc0d3fd3f38abfaea (patch)
tree6d71721b74104d00ca61646a52a418e1753c6e4e /lib
parentda477e3fc1bcac8d8afb4d3eef6d250d4eae37e0 (diff)
downloadotp-cf6d1faf367b47c79ded23afc0d3fd3f38abfaea.tar.gz
otp-cf6d1faf367b47c79ded23afc0d3fd3f38abfaea.tar.bz2
otp-cf6d1faf367b47c79ded23afc0d3fd3f38abfaea.zip
Teach VM not to dump core on long pathnames
Long input paths (longer than MAX_PATH) would get copied into a buffer of size MAX_PATH for read_link and altname in efile_drv. Also fixed misuse of size_t parameter as wchar_t * string length in win_efile:efile_readlink.
Diffstat (limited to 'lib')
-rw-r--r--lib/kernel/test/file_SUITE.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/kernel/test/file_SUITE.erl b/lib/kernel/test/file_SUITE.erl
index 2b6af7e1fb..848db06e82 100644
--- a/lib/kernel/test/file_SUITE.erl
+++ b/lib/kernel/test/file_SUITE.erl
@@ -2358,6 +2358,7 @@ symlinks(doc) -> "Test operations on symbolic links (for Unix).";
symlinks(suite) -> [];
symlinks(Config) when is_list(Config) ->
?line Dog = test_server:timetrap(test_server:seconds(10)),
+ ?line {error, _} = ?FILE_MODULE:read_link(lists:duplicate(10000,$a)),
?line RootDir = ?config(priv_dir, Config),
?line NewDir = filename:join(RootDir,
atom_to_list(?MODULE)