Skip to content
Snippets Groups Projects
Commit f43bf536 authored by Yifei Teng's avatar Yifei Teng Committed by CQ bot account: commit-bot@chromium.org
Browse files

[fs] Check path component length in vfs

Previously, the vfs validated the entire path length but did not
validate the length of each individual components. When a client opens a
path with a component larger than NAME_MAX, it would trigger debug
assertions in minfs, which expect each path component to be within that
limit.

ZX-3924 #done

TEST: /boot/test/fs/fs-test

Change-Id: I3d64f2c253591eab5dff9a8fd4b1d7abefbf6388
parent f43d975a
No related branches found
No related tags found
Loading
Loading
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