Skip to content
Snippets Groups Projects
Commit f6926b35 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard
Browse files

ntdll: Increase name buffer size in read_directory_getattrlist() for UTF-8 encoding.

The docs for getattrlist() say that ATTR_CMN_NAME can return up to NAME_MAX + 1
Unicode characters (code points) encoded in UTF-8, which means it can be up to
NAME_MAX * 3 + 1 bytes.
parent e24eb501
No related branches found
No related tags found
No related merge requests found
......@@ -2144,7 +2144,7 @@ static int read_directory_getattrlist( int fd, IO_STATUS_BLOCK *io, void *buffer
{
u_int32_t length;
struct attrreference name_reference;
char name[NAME_MAX + 1];
char name[NAME_MAX * 3 + 1];
} attrlist_buffer;
TRACE("looking up file %s\n", debugstr_us( mask ));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment