Skip to main content

parse_directory_info

Function parse_directory_info 

Source
pub fn parse_directory_info(msg: &[u8]) -> Result<Vec<DirEntry>>
Expand description

Parse a QUERY_DIRECTORY response (§2.2.34) carrying FileDirectoryInformation entries. Bounds-checked and loop-bounded: a hostile server cannot drive an out-of-range read or a non-terminating walk (a NextEntryOffset that fails to advance, or an entry claiming a name longer than the buffer, ends parsing).