From e14f2a9299f809e7f82b5eccfbfc6df8e9229920 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 27 Nov 2016 15:24:35 -0800 Subject: [PATCH] wlfuzz: allow short name associated with long name ending with dot or space --- src/test_support.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/test_support.c b/src/test_support.c index 313ad085..bc7fde19 100644 --- a/src/test_support.c +++ b/src/test_support.c @@ -669,9 +669,8 @@ is_name_valid_in_win32_namespace(const utf16lechar *name) if (!is_valid_windows_filename_char(*p)) return false; - /* There can't be a trailing dot or space. */ - if (p[-1] == cpu_to_le16('.') || p[-1] == cpu_to_le16(' ')) - return false; + /* Note: a trailing dot or space is permitted, even though on Windows + * such a file can only be accessed using a WinNT-style path. */ /* The name can't be one of the reserved names (case insensitively). */ for (size_t i = 0; i < ARRAY_LEN(forbidden_names); i++) -- 2.43.0